bug 122:
- Correct an assert to not have redundant isa<GlobalValue>
llvm-svn: 14934
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 0215c60..8b903c7 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -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;