forked from OSchip/llvm-project
Fix a FIXME. 1 bit integer types are now printed as i1 not bool.
llvm-svn: 33176
This commit is contained in:
parent
ff7434a526
commit
91d93de25e
|
@ -218,10 +218,7 @@ static std::string getTypeDescription(const Type *Ty,
|
|||
switch (Ty->getTypeID()) {
|
||||
case Type::IntegerTyID: {
|
||||
const IntegerType *ITy = cast<IntegerType>(Ty);
|
||||
if (ITy->getBitWidth() == 1)
|
||||
Result = "bool"; // FIXME: eventually this becomes i1
|
||||
else
|
||||
Result = "i" + utostr(ITy->getBitWidth());
|
||||
Result = "i" + utostr(ITy->getBitWidth());
|
||||
break;
|
||||
}
|
||||
case Type::FunctionTyID: {
|
||||
|
|
Loading…
Reference in New Issue