[cfe-commits] r39563 - /cfe/cfe/trunk/AST/Type.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:45:39 PDT 2007
Author: clattner
Date: Wed Jul 11 11:45:38 2007
New Revision: 39563
URL: http://llvm.org/viewvc/llvm-project?rev=39563&view=rev
Log:
trivial simplification
Modified:
cfe/cfe/trunk/AST/Type.cpp
Modified: cfe/cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Type.cpp?rev=39563&r1=39562&r2=39563&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/Type.cpp (original)
+++ cfe/cfe/trunk/AST/Type.cpp Wed Jul 11 11:45:38 2007
@@ -248,8 +248,7 @@
return BT->getKind() >= BuiltinType::Bool &&
BT->getKind() <= BuiltinType::LongDouble;
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
- if (TT->getDecl()->getKind() == Decl::Enum)
- return true;
+ return TT->getDecl()->getKind() == Decl::Enum;
return false;
}
More information about the cfe-commits
mailing list