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
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 6dfb439..dbd6188 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -1721,7 +1721,7 @@
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 @@
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 @@
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!");