From 80be6298d0e5fd76afa3663e37fde5ba83ab0ba9 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 7 Mar 2017 17:28:49 +0000 Subject: [PATCH] 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 --- lib/IR/Verifier.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 2.50.1