Skip to content

Commit

Permalink
Verfier: Move the reset of DebugFnArgs closer to other similar operat…
Browse files Browse the repository at this point in the history
…ions.

NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297160 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
adrian-prantl committed Mar 7, 2017
1 parent cf4eefa commit 80be629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/IR/Verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ class Verifier : public InstVisitor<Verifier>, VerifierSupport {
visit(const_cast<Function &>(F));
verifySiblingFuncletUnwinds();
InstsInThisBlock.clear();
DebugFnArgs.clear();
LandingPadResultTy = nullptr;
SawFrameEscape = false;
SiblingFuncletInfo.clear();
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 80be629

Please sign in to comment.