mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Remove the return type check for llvm.readio. This check is done for all
functions and is not needed here. Simplify the pointer type check per Chris's suggestions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12945 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17f64258cf
commit
71c887d688
@ -644,11 +644,10 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
||||
|
||||
Assert1(FT->getNumParams() == 1,
|
||||
"Illegal # arguments for intrinsic function!", IF);
|
||||
Assert1(ReturnType->isFirstClassType(),
|
||||
"Return type is not a first class type!", IF);
|
||||
Assert1(ParamType->getPrimitiveID() == Type::PointerTyID,
|
||||
Assert1(isa<PointerType>(ParamType),
|
||||
"First argument not a pointer!", IF);
|
||||
Assert1(((dyn_cast<PointerType>(ParamType)->getContainedType(0)) == ReturnType), "Pointer type doesn't match return type!", IF);
|
||||
Assert1(((cast<PointerType>(ParamType)->getElementType()) == ReturnType),
|
||||
"Pointer type doesn't match return type!", IF);
|
||||
NumArgs = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user