mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Change intrinsic result type for void to store it as an empty list
instead of as a single element list with VoidTy. Now with a fix for the verifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -490,12 +490,15 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) {
|
||||
OverloadedVTs.push_back(VT);
|
||||
isOverloaded |= true;
|
||||
}
|
||||
|
||||
IS.RetVTs.push_back(VT);
|
||||
IS.RetTypeDefs.push_back(TyEl);
|
||||
}
|
||||
|
||||
if (IS.RetVTs.size() == 0)
|
||||
throw "Intrinsic '"+DefName+"' needs at least a type for the ret value!";
|
||||
|
||||
if (IS.RetVTs.size() == 1 && IS.RetVTs[0] == MVT::isVoid) {
|
||||
IS.RetVTs.pop_back();
|
||||
IS.RetTypeDefs.pop_back();
|
||||
}
|
||||
|
||||
// Parse the list of parameter types.
|
||||
TypeList = R->getValueAsListInit("ParamTypes");
|
||||
|
||||
Reference in New Issue
Block a user