diff options
| author | Sam Clegg <sbc@chromium.org> | 2021-05-01 15:37:40 -0700 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2021-05-03 18:04:55 -0700 |
| commit | 808fcddae406181cfc396df3dd065e821147c4c4 (patch) | |
| tree | 1b290e9a97b90c61f76fa067f333cd14a2510a77 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 24ce194cfe493bb743c288ed049fcd86c37aace2 (diff) | |
[lld][WebAssembly] Fix crash with `-pie` without `--allow-undefined`
`shouldImport` was not returning true in PIC mode even though out
assumption elsewhere (in Relocations.cpp:scanRelocations) is that we
don't report undefined symbols in PIC mode today. This was resulting
functions that were undefined and but also not imported which hits an
assert later on that all functions have valid indexes.
Differential Revision: https://reviews.llvm.org/D101716
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
