[PATCH] D45648: [WebAssembly] Fix a bug in MachineBasicBlock::findDebugLoc() call

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 13 17:15:18 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL330079: [WebAssembly] Fix a bug in MachineBasicBlock::findDebugLoc() call (authored by aheejin, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45648

Files:
  llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp


Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
@@ -147,9 +147,10 @@
   }
 
   // Add the BLOCK.
-  MachineInstr *Begin = BuildMI(*Header, InsertPos, MBB.findDebugLoc(InsertPos),
-                                TII.get(WebAssembly::BLOCK))
-                            .addImm(int64_t(WebAssembly::ExprType::Void));
+  MachineInstr *Begin =
+      BuildMI(*Header, InsertPos, Header->findDebugLoc(InsertPos),
+              TII.get(WebAssembly::BLOCK))
+          .addImm(int64_t(WebAssembly::ExprType::Void));
 
   // Mark the end of the block.
   InsertPos = MBB.begin();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45648.142498.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180414/ce149474/attachment.bin>


More information about the llvm-commits mailing list