]> granicus.if.org Git - clang/commitdiff
[WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size.
authorDan Gohman <dan433584@gmail.com>
Sat, 14 Nov 2015 22:57:34 +0000 (22:57 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 14 Nov 2015 22:57:34 +0000 (22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253146 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/BuiltinsWebAssembly.def

index 58171c80672611c20c0c339ceefbf1762f2ad342..975433523ada9f62ecd1a0fa1f40ee7002f8aec6 100644 (file)
@@ -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