[llvm] r297160 - Verfier: Move the reset of DebugFnArgs closer to other similar operations.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 09:28:50 PST 2017
Author: adrian
Date: Tue Mar 7 11:28:49 2017
New Revision: 297160
URL: http://llvm.org/viewvc/llvm-project?rev=297160&view=rev
Log:
Verfier: Move the reset of DebugFnArgs closer to other similar operations.
NFC
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=297160&r1=297159&r2=297160&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Mar 7 11:28:49 2017
@@ -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::verifySiblingFuncletUnwin
// visitFunction - Verify that a function is ok.
//
void Verifier::visitFunction(const Function &F) {
- DebugFnArgs.clear();
-
visitGlobalValue(F);
// Check function arguments.
More information about the llvm-commits
mailing list