aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/OptimizedStructLayout.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-04-08 16:02:25 -0700
committerHeejin Ahn <aheejin@gmail.com>2020-04-09 18:44:50 -0700
commitb647de99254ca047748eded14b9d302912294bec (patch)
treef9fd12e48cdcce42e2895ca07b2f899c77d352c2 /llvm/lib/Support/OptimizedStructLayout.cpp
parent5da1671bf82306b7fa8dca48f495896c2b29e909 (diff)
downloadllvm-b647de99254ca047748eded14b9d302912294bec.zip
llvm-b647de99254ca047748eded14b9d302912294bec.tar.gz
llvm-b647de99254ca047748eded14b9d302912294bec.tar.bz2
[WebAssembly] Use dummy debug info in Emscripten SjLj
Summary: D74269 added debug info to newly created instructions, including calls to `malloc` and `free`, by taking debug info from existing instructions around, whose debug info may or may not be empty. But there are cases debug info is required by the IR verifier: when both the caller and the callee functions have DISubprograms, meaning we already have declarations to `malloc` or `free` with a DISubprogram attached, newly created calls to `malloc` and `free` should have non-empty debug info. This patch creates a non-empty dummy debug info in this case to those calls to make the IR verifier pass. Fixes https://bugs.llvm.org/show_bug.cgi?id=45461. Reviewers: dschuff Subscribers: aprantl, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77784
Diffstat (limited to 'llvm/lib/Support/OptimizedStructLayout.cpp')
0 files changed, 0 insertions, 0 deletions