[PATCH] D45648: [WebAssembly] Fix bugs in MachineBasicBlock::findDebugLoc() calls
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 13 17:10:32 PDT 2018
aheejin updated this revision to Diff 142497.
aheejin added a comment.
Delete `findPrevDebugLoc()` call and leave only Header bugfix
Repository:
rL LLVM
https://reviews.llvm.org/D45648
Files:
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
Index: lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
===================================================================
--- lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ 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.142497.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180414/b047864e/attachment.bin>
More information about the llvm-commits
mailing list