[cfe-commits] r39476 - /cfe/cfe/trunk/AST/Expr.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:48 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:47 2007
New Revision: 39476
URL: http://llvm.org/viewvc/llvm-project?rev=39476&view=rev
Log:
minor simplification
Modified:
cfe/cfe/trunk/AST/Expr.cpp
Modified: cfe/cfe/trunk/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Expr.cpp?rev=39476&r1=39475&r2=39476&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/Expr.cpp (original)
+++ cfe/cfe/trunk/AST/Expr.cpp Wed Jul 11 11:44:47 2007
@@ -290,9 +290,8 @@
}
break;
default:
- break;
- }
- if (!constant || constant->getValue() != 0)
return false;
- return true;
+ }
+
+ return constant && constant->getValue() == 0;
}
More information about the cfe-commits
mailing list