[llvm] [WebAssembly] Add path to PIC mode for wasm tables (PR #67545)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 1 17:58:46 PDT 2023
================
@@ -1724,8 +1724,12 @@ SDValue WebAssemblyTargetLowering::LowerGlobalAddress(SDValue Op,
fail(DL, DAG, "Invalid address space for WebAssembly target");
unsigned OperandFlags = 0;
- if (isPositionIndependent()) {
- const GlobalValue *GV = GA->getGlobal();
+ const GlobalValue *GV = GA->getGlobal();
+ // is PIC but not a WebAssembly table.
----------------
sbc100 wrote:
I don't think this line is needed anymore
https://github.com/llvm/llvm-project/pull/67545
More information about the llvm-commits
mailing list