[llvm-commits] [llvm] r141842 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp
Nick Lewycky
nicholas at mxc.ca
Wed Oct 12 17:54:59 PDT 2011
Author: nicholas
Date: Wed Oct 12 19:54:59 2011
New Revision: 141842
URL: http://llvm.org/viewvc/llvm-project?rev=141842&view=rev
Log:
Add missing braces to pacify GCC's -Wparentheses.
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=141842&r1=141841&r2=141842&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Wed Oct 12 19:54:59 2011
@@ -1473,11 +1473,12 @@
}
unsigned RCID = 0;
- if (InlineAsm::hasRegClassConstraint(Flag, RCID))
+ if (InlineAsm::hasRegClassConstraint(Flag, RCID)) {
if (TM)
OS << ':' << TM->getRegisterInfo()->getRegClass(RCID)->getName();
else
OS << ":RC" << RCID;
+ }
unsigned TiedTo = 0;
if (InlineAsm::isUseOperandTiedToDef(Flag, TiedTo))
More information about the llvm-commits
mailing list