Work around bugs in MSVC "14" CTP 3's conversion logic
[oota-llvm.git] / lib / Target / X86 / X86FloatingPoint.cpp
index 6c203aa586067bf95859f2af5ef7f6d335a4ff7e..82c3b3412abf8a2c1814b1d2460851dd95f5a492 100644 (file)
@@ -834,7 +834,9 @@ FPS::freeStackSlotBefore(MachineBasicBlock::iterator I, unsigned FPRegNo) {
   RegMap[TopReg]    = OldSlot;
   RegMap[FPRegNo]   = ~0;
   Stack[--StackTop] = ~0;
-  return BuildMI(*MBB, I, DebugLoc(), TII->get(X86::ST_FPrr)).addReg(STReg);
+  return BuildMI(*MBB, I, DebugLoc(), TII->get(X86::ST_FPrr))
+      .addReg(STReg)
+      .getInstr();
 }
 
 /// adjustLiveRegs - Kill and revive registers such that exactly the FP