[cfe-commits] r60320 - /cfe/trunk/lib/AST/Expr.cpp
Anders Carlsson
andersca at mac.com
Sun Nov 30 18:25:52 PST 2008
Author: andersca
Date: Sun Nov 30 20:25:52 2008
New Revision: 60320
URL: http://llvm.org/viewvc/llvm-project?rev=60320&view=rev
Log:
Remove dead code.
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=60320&r1=60319&r2=60320&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Sun Nov 30 20:25:52 2008
@@ -1051,9 +1051,6 @@
// test for the value 0.
return Evaluate(Result, Ctx) && !Result.HasSideEffects &&
Result.Val.isInt() && Result.Val.getInt() == 0;
-
- llvm::APSInt Val(32);
- return isIntegerConstantExpr(Val, Ctx, 0, true) && Val == 0;
}
/// isBitField - Return true if this expression is a bit-field.
More information about the cfe-commits
mailing list