summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-03-07 17:28:49 +0000
committerAdrian Prantl <aprantl@apple.com>2017-03-07 17:28:49 +0000
commit9b24a450299dfe34644ecab194d6a8fcc0aa4f97 (patch)
tree625f2eab5b40aa34715b3c84c528aa5798ac48b2 /llvm/lib/IR/Verifier.cpp
parent3b2f0094d7559823697e4724c717f3e3fa4b5e94 (diff)
downloadbcm5719-llvm-9b24a450299dfe34644ecab194d6a8fcc0aa4f97.tar.gz
bcm5719-llvm-9b24a450299dfe34644ecab194d6a8fcc0aa4f97.zip
Verfier: Move the reset of DebugFnArgs closer to other similar operations.
NFC llvm-svn: 297160
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 4c808029bf5..19800ce5eec 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -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.
OpenPOWER on IntegriCloud