[PATCH] D29124: [ARM] GlobalISel: Fix stack-use-after-scope bug.

Martin Böhme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 06:39:28 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL293059: [ARM] GlobalISel: Fix stack-use-after-scope bug. (authored by mboehme).

Changed prior to commit:
  https://reviews.llvm.org/D29124?vs=85745&id=85747#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D29124

Files:
  llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp


Index: llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
+++ llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
@@ -132,7 +132,7 @@
         I.getOperand(0).setReg(AndResult);
 
         auto InsertBefore = std::next(I.getIterator());
-        auto &SubI =
+        auto SubI =
             BuildMI(MBB, InsertBefore, I.getDebugLoc(), TII.get(ARM::RSBri))
                 .addDef(SExtResult)
                 .addUse(AndResult)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29124.85747.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170125/f7b26036/attachment.bin>


More information about the llvm-commits mailing list