[llvm] r209871 - Remove use of comma operator.
Richard Trieu
rtrieu at google.com
Thu May 29 20:15:17 PDT 2014
Author: rtrieu
Date: Thu May 29 22:15:17 2014
New Revision: 209871
URL: http://llvm.org/viewvc/llvm-project?rev=209871&view=rev
Log:
Remove use of comma operator.
Modified:
llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=209871&r1=209870&r2=209871&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Thu May 29 22:15:17 2014
@@ -1078,8 +1078,11 @@ void ExtAddrMode::print(raw_ostream &OS)
NeedPlus = true;
}
- if (BaseOffs)
- OS << (NeedPlus ? " + " : "") << BaseOffs, NeedPlus = true;
+ if (BaseOffs) {
+ OS << (NeedPlus ? " + " : "")
+ << BaseOffs;
+ NeedPlus = true;
+ }
if (BaseReg) {
OS << (NeedPlus ? " + " : "")
More information about the llvm-commits
mailing list