diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-11-05 21:10:57 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-11-05 21:10:57 +0000 |
commit | 87869bc435c1fb81ae0a3fd5c76becaaa0f90284 (patch) | |
tree | 594a923abdd4701a14a7929ac1a64f2960d29590 /clang/lib | |
parent | 0b7c85fc5a2889d5cf6979aff4623c7d390cda13 (diff) | |
download | bcm5719-llvm-87869bc435c1fb81ae0a3fd5c76becaaa0f90284.tar.gz bcm5719-llvm-87869bc435c1fb81ae0a3fd5c76becaaa0f90284.zip |
Make ASTContext::getIntWidth return 1 for all boolean type variations, not just for the unqualified, unaliased bool.
llvm-svn: 86174
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 8562249479c..a6b0dfbaf49 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -4394,7 +4394,7 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) { //===----------------------------------------------------------------------===// unsigned ASTContext::getIntWidth(QualType T) { - if (T == BoolTy) + if (T->isBooleanType()) return 1; if (FixedWidthIntType *FWIT = dyn_cast<FixedWidthIntType>(T)) { return FWIT->getWidth(); |