pmatos created this revision. Herald added subscribers: cfe-commits, jgravelle-google, sbc100, dschuff. Herald added a project: clang. pmatos requested review of this revision. Herald added a subscriber: aheejin.
externref needs address space 256. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D85022 Files: clang/lib/Basic/Targets/WebAssembly.cpp Index: clang/lib/Basic/Targets/WebAssembly.cpp =================================================================== --- clang/lib/Basic/Targets/WebAssembly.cpp +++ clang/lib/Basic/Targets/WebAssembly.cpp @@ -232,6 +232,7 @@ } if (Feature == "+reference-types") { HasReferenceTypes = true; + resetDataLayout("e-m:e-p:32:32-i64:64-n32:64-S128-ni:256"); continue; } if (Feature == "-reference-types") {
Index: clang/lib/Basic/Targets/WebAssembly.cpp =================================================================== --- clang/lib/Basic/Targets/WebAssembly.cpp +++ clang/lib/Basic/Targets/WebAssembly.cpp @@ -232,6 +232,7 @@ } if (Feature == "+reference-types") { HasReferenceTypes = true; + resetDataLayout("e-m:e-p:32:32-i64:64-n32:64-S128-ni:256"); continue; } if (Feature == "-reference-types") {
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits