mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
SDTCisVT<0, isVoid> is not valid, reject it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b5d4908dd
commit
c812261221
@ -524,6 +524,9 @@ SDTypeConstraint::SDTypeConstraint(Record *R) {
|
||||
if (R->isSubClassOf("SDTCisVT")) {
|
||||
ConstraintType = SDTCisVT;
|
||||
x.SDTCisVT_Info.VT = getValueType(R->getValueAsDef("VT"));
|
||||
if (x.SDTCisVT_Info.VT == MVT::isVoid)
|
||||
throw TGError(R->getLoc(), "Cannot use 'Void' as type to SDTCisVT");
|
||||
|
||||
} else if (R->isSubClassOf("SDTCisPtrTy")) {
|
||||
ConstraintType = SDTCisPtrTy;
|
||||
} else if (R->isSubClassOf("SDTCisInt")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user