[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp
LLVM
llvm at cs.uiuc.edu
Sat Jul 17 17:02:51 PDT 2004
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.114 -> 1.115
---
Log message:
bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Correct an assert to not have redundant isa<GlobalValue>
---
Diffs of the changes: (+1 -4)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.114 llvm/lib/VMCore/Verifier.cpp:1.115
--- llvm/lib/VMCore/Verifier.cpp:1.114 Sun Jul 4 06:53:53 2004
+++ llvm/lib/VMCore/Verifier.cpp Sat Jul 17 19:02:41 2004
@@ -123,8 +123,6 @@
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
visitGlobalValue(*I);
-
-
// If the module is broken, abort at this time.
abortIfBroken();
return false;
@@ -709,8 +707,7 @@
case Intrinsic::gcroot:
Assert1(FT->getNumParams() == 2,
"Illegal # arguments for intrinsic function!", IF);
- Assert1(isa<Constant>(CI.getOperand(2)) ||
- isa<GlobalValue>(CI.getOperand(2)),
+ Assert1(isa<Constant>(CI.getOperand(2)),
"Second argument to llvm.gcroot must be a constant!", &CI);
NumArgs = 2;
break;
More information about the llvm-commits
mailing list