diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-11-14 22:57:34 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-11-14 22:57:34 +0000 |
commit | 8ec83f5819bee7c0f459e82ff9e1c21a5087edfd (patch) | |
tree | 69bf3df97d6365c16cf5454e2cfe2af5a9dee2f4 /include/clang/Basic/BuiltinsWebAssembly.def | |
parent | 120f725932ce0d5c4e1ad4a14610f2c898c41346 (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.def | 4 |
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 |