From 8ec83f5819bee7c0f459e82ff9e1c21a5087edfd Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 14 Nov 2015 22:57:34 +0000 Subject: [PATCH] [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 --- include/clang/Basic/BuiltinsWebAssembly.def | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.50.1