summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/BuiltinsWebAssembly.def
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-14 22:57:34 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-14 22:57:34 +0000
commit8ec83f5819bee7c0f459e82ff9e1c21a5087edfd (patch)
tree69bf3df97d6365c16cf5454e2cfe2af5a9dee2f4 /include/clang/Basic/BuiltinsWebAssembly.def
parent120f725932ce0d5c4e1ad4a14610f2c898c41346 (diff)
[WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/BuiltinsWebAssembly.def')
-rw-r--r--include/clang/Basic/BuiltinsWebAssembly.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/BuiltinsWebAssembly.def b/include/clang/Basic/BuiltinsWebAssembly.def
index 58171c8067..975433523a 100644
--- a/include/clang/Basic/BuiltinsWebAssembly.def
+++ b/include/clang/Basic/BuiltinsWebAssembly.def
@@ -16,7 +16,9 @@
// The format of this database matches clang/Basic/Builtins.def.
-BUILTIN(__builtin_wasm_memory_size, "z", "nc")
+// Note that memory_size is not "c" (readnone) because it must be sequenced with
+// respect to grow_memory calls.
+BUILTIN(__builtin_wasm_memory_size, "z", "n")
BUILTIN(__builtin_wasm_grow_memory, "vz", "n")
#undef BUILTIN