]> granicus.if.org Git - llvm/commitdiff
Verfier: Move the reset of DebugFnArgs closer to other similar operations.
authorAdrian Prantl <aprantl@apple.com>
Tue, 7 Mar 2017 17:28:49 +0000 (17:28 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 7 Mar 2017 17:28:49 +0000 (17:28 +0000)
NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297160 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Verifier.cpp

index 4c808029bf5e3e7cb951f032b474f23d6617c199..19800ce5eeca5aa933f3f4cc63c1a1b50da4c506 100644 (file)
@@ -345,6 +345,7 @@ public:
     visit(const_cast<Function &>(F));
     verifySiblingFuncletUnwinds();
     InstsInThisBlock.clear();
+    DebugFnArgs.clear();
     LandingPadResultTy = nullptr;
     SawFrameEscape = false;
     SiblingFuncletInfo.clear();
@@ -1951,8 +1952,6 @@ void Verifier::verifySiblingFuncletUnwinds() {
 // visitFunction - Verify that a function is ok.
 //
 void Verifier::visitFunction(const Function &F) {
-  DebugFnArgs.clear();
-
   visitGlobalValue(F);
 
   // Check function arguments.