aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2020-05-21 11:33:25 -0700
committerThomas Lively <tlively@google.com>2020-05-21 11:33:25 -0700
commitd851fce4cb238d5fe85ce71002721dfc2330fa46 (patch)
treec138909296adf3bc9e715f2196e5421273678136 /llvm/lib/IR/Module.cpp
parentabf4957204f55f435a5655260be13982a224fc3b (diff)
downloadllvm-d851fce4cb238d5fe85ce71002721dfc2330fa46.zip
llvm-d851fce4cb238d5fe85ce71002721dfc2330fa46.tar.gz
llvm-d851fce4cb238d5fe85ce71002721dfc2330fa46.tar.bz2
[lld][WebAssembly] Do not emit initialization for .bss segments
Summary: This patch fixes a bug where initialization code for .bss segments was emitted in the memory initialization function even though the .bss segments were discounted in the datacount section and omitted in the data section. This was producing invalid binaries due to out-of-bounds segment indices on the memory.init and data.drop instructions that were trying to operate on the nonexistent .bss segments. Reviewers: sbc100 Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80354
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions