From: Adrian Prantl Date: Tue, 7 Mar 2017 17:28:49 +0000 (+0000) Subject: Verfier: Move the reset of DebugFnArgs closer to other similar operations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80be6298d0e5fd76afa3663e37fde5ba83ab0ba9;p=llvm Verfier: Move the reset of DebugFnArgs closer to other similar operations. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297160 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 4c808029bf5..19800ce5eec 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -345,6 +345,7 @@ public: visit(const_cast(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.