From 190794581638a1a2a496f1cc19f0c2ca5ca4611a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 20 Apr 2007 23:59:29 +0000 Subject: [PATCH] Fix regressions introduced by my previous patch: opt calls verifier in a way that the "Mod" ivar was not getting set. llvm-svn: 36291 --- lib/VMCore/Verifier.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index c0a0dc6e699..19367662d22 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(); - + + Mod = F.getParent(); + visit(F); InstsInThisBlock.clear();