From: Dan Gohman Date: Sat, 14 Nov 2015 22:57:34 +0000 (+0000) Subject: [WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ec83f5819bee7c0f459e82ff9e1c21a5087edfd;p=clang [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 --- 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