[PATCH] D65172: [SafeStack] Insert the deref before remaining elements

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 16:36:32 PDT 2019


phosek updated this revision to Diff 211380.

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65172/new/

https://reviews.llvm.org/D65172

Files:
  llvm/lib/Transforms/Utils/Local.cpp


Index: llvm/lib/Transforms/Utils/Local.cpp
===================================================================
--- llvm/lib/Transforms/Utils/Local.cpp
+++ llvm/lib/Transforms/Utils/Local.cpp
@@ -1602,8 +1602,7 @@
   if (Offset) {
     SmallVector<uint64_t, 4> Ops;
     DIExpression::appendOffset(Ops, Offset);
-    Ops.append(DIExpr->elements_begin() + 1, DIExpr->elements_end());
-    Ops.push_back(dwarf::DW_OP_deref);
+    Ops.append(DIExpr->elements_begin(), DIExpr->elements_end());
     DIExpr = Builder.createExpression(Ops);
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65172.211380.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190723/a93651ba/attachment.bin>


More information about the llvm-commits mailing list