[llvm-commits] [llvm] r74181 - /llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Chris Lattner
sabre at nondot.org
Thu Jun 25 10:21:45 PDT 2009
Author: lattner
Date: Thu Jun 25 12:21:32 2009
New Revision: 74181
URL: http://llvm.org/viewvc/llvm-project?rev=74181&view=rev
Log:
Clone target flags when copying mbb operands.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h?rev=74181&r1=74180&r2=74181&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h Thu Jun 25 12:21:32 2009
@@ -134,7 +134,7 @@
return addGlobalAddress(MO.getGlobal(), MO.getOffset(),
MO.getTargetFlags());
if (MO.isMBB())
- return addMBB(MO.getMBB());
+ return addMBB(MO.getMBB(), MO.getTargetFlags());
if (MO.isCPI())
return addConstantPoolIndex(MO.getIndex(), MO.getOffset(),
MO.getTargetFlags());
More information about the llvm-commits
mailing list