mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-31 09:25:42 +00:00
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1721,7 +1721,7 @@ ConstExpr: CastOps '(' ConstVal TO Types ')' {
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
| SELECT '(' ConstVal ',' ConstVal ',' ConstVal ')' {
|
||||
if ($3->getType() != Type::BoolTy)
|
||||
if ($3->getType() != Type::Int1Ty)
|
||||
GEN_ERROR("Select condition must be of boolean type!");
|
||||
if ($5->getType() != $7->getType())
|
||||
GEN_ERROR("Select operand types must match!");
|
||||
@@ -2347,7 +2347,7 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result...
|
||||
CHECK_FOR_ERROR
|
||||
BasicBlock* tmpBBB = getBBVal($9);
|
||||
CHECK_FOR_ERROR
|
||||
Value* tmpVal = getVal(Type::BoolTy, $3);
|
||||
Value* tmpVal = getVal(Type::Int1Ty, $3);
|
||||
CHECK_FOR_ERROR
|
||||
$$ = new BranchInst(tmpBBA, tmpBBB, tmpVal);
|
||||
}
|
||||
@@ -2647,7 +2647,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
delete $4;
|
||||
}
|
||||
| SELECT ResolvedVal ',' ResolvedVal ',' ResolvedVal {
|
||||
if ($2->getType() != Type::BoolTy)
|
||||
if ($2->getType() != Type::Int1Ty)
|
||||
GEN_ERROR("select condition must be boolean!");
|
||||
if ($4->getType() != $6->getType())
|
||||
GEN_ERROR("select value types should match!");
|
||||
|
Reference in New Issue
Block a user