- Correct an assert to not have redundant isa<GlobalValue>

llvm-svn: 14934
This commit is contained in:
Reid Spencer 2004-07-18 00:02:41 +00:00
parent bbddbf3aed
commit 49fc8a746e
1 changed files with 1 additions and 4 deletions

View File

@ -123,8 +123,6 @@ namespace { // Anonymous namespace for class
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 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
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;