[PATCH] D19688: Fixes PR27241 by enabling the X86 call frame optimization for 64-bit targets

David Kreitzer via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 14:11:13 PDT 2016


DavidKreitzer added inline comments.

================
Comment at: lib/Target/X86/X86CallFrameOptimization.cpp:108
@@ -107,3 +107,3 @@
   const X86Subtarget *STI;
-  const MachineRegisterInfo *MRI;
+  MachineRegisterInfo *MRI;
   unsigned SlotSize;
----------------
In case it isn't immediately obvious, removing "const" here is necessary due to the calls to MRI->createVirtualRegister at lines 492-493.



http://reviews.llvm.org/D19688





More information about the llvm-commits mailing list