[PATCH] D85022: Need to ensure the datalayout differs when using externref
Paulo Matos via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 31 04:43:49 PDT 2020
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") {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85022.282191.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200731/efca24e8/attachment-0001.bin>
More information about the cfe-commits
mailing list