mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
bug 122:
- Correct an assert to not have redundant isa<GlobalValue> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ec2e4c578
commit
38696d2f2b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user