diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-20 23:59:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-20 23:59:29 +0000 |
commit | cd070759c42a385e869f0faf9cee16ec6b1cb4ae (patch) | |
tree | 201b1f7bc218dbe31e3a9b19cf6498883108a76f /lib/VMCore/Verifier.cpp | |
parent | 0d3b67809ccab229a03db8c1bede852fb89eb081 (diff) | |
download | llvm-cd070759c42a385e869f0faf9cee16ec6b1cb4ae.tar.gz llvm-cd070759c42a385e869f0faf9cee16ec6b1cb4ae.tar.bz2 llvm-cd070759c42a385e869f0faf9cee16ec6b1cb4ae.tar.xz |
Fix regressions introduced by my previous patch: opt calls verifier in a
way that the "Mod" ivar was not getting set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index c0a0dc6e69..19367662d2 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -113,7 +113,9 @@ namespace { // Anonymous namespace for class bool runOnFunction(Function &F) { // Get dominator information if we are being run by PassManager if (RealPass) EF = &getAnalysis<ETForest>(); - + + Mod = F.getParent(); + visit(F); InstsInThisBlock.clear(); |