Author: efriedma
Date: Wed Apr 29 15:29:43 2009
New Revision: 70406
URL: http://llvm.org/viewvc/llvm-project?rev=70406&view=rev
Log:
Minor simplification; also silences gcc warning.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=70406&r1=70405&r2=70406&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Apr 29 15:29:43 2009
@@ -927,7 +927,7 @@
bool Result;
if (E->getOpcode() == BinaryOperator::EQ) {
Result = LHSValue.getLValueOffset() == RHSValue.getLValueOffset();
- } else if (E->getOpcode() == BinaryOperator::NE) {
+ } else {
Result = LHSValue.getLValueOffset() != RHSValue.getLValueOffset();
}
return Success(Result, E);
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits