[cfe-commits] r44996 - /cfe/trunk/CodeGen/CGBuiltin.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 12 23:47:55 PST 2007
Author: lattner
Date: Thu Dec 13 01:47:54 2007
New Revision: 44996
URL: http://llvm.org/viewvc/llvm-project?rev=44996&view=rev
Log:
minor cleanups
Modified:
cfe/trunk/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGBuiltin.cpp?rev=44996&r1=44995&r2=44996&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/CodeGen/CGBuiltin.cpp Thu Dec 13 01:47:54 2007
@@ -127,18 +127,14 @@
}
case Builtin::BI__builtin_classify_type: {
APSInt Result(32);
-
if (!E->isBuiltinClassifyType(Result))
assert(0 && "Expr not __builtin_classify_type!");
-
return RValue::get(ConstantInt::get(Result));
}
case Builtin::BI__builtin_constant_p: {
APSInt Result(32);
-
// FIXME: Analyze the parameter and check if it is a constant.
Result = 0;
-
return RValue::get(ConstantInt::get(Result));
}
case Builtin::BI__builtin_abs: {
More information about the cfe-commits
mailing list