OSDN Git Service

[WebAssembly] Fix a bug in MachineBasicBlock::findDebugLoc() call
authorHeejin Ahn <aheejin@gmail.com>
Sat, 14 Apr 2018 00:12:12 +0000 (00:12 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Sat, 14 Apr 2018 00:12:12 +0000 (00:12 +0000)
commit1076c8db457370612232bbf70d8b186fb4ac36f6
tree601313cf89f3568e527aa25e60cbeb0feb9b3145
parentc4082cf631e847ddf3356a0e82ef1ea67cc6b21f
[WebAssembly] Fix a bug in MachineBasicBlock::findDebugLoc() call

Summary:
InsertPos is within the bacic block `Header`, so `findDebugLoc()` should
be called on not `MBB` but `Header` instead.

Reviewers: yurydelendik

Subscribers: jfb, dschuff, aprantl, sbc100, jgravelle-google, sunfish, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D45648

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330079 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp