r253146 - [WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size.

Dan Gohman via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 14 14:57:34 PST 2015


Author: djg
Date: Sat Nov 14 16:57:34 2015
New Revision: 253146

URL: http://llvm.org/viewvc/llvm-project?rev=253146&view=rev
Log:
[WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size.

Modified:
    cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def

Modified: cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def?rev=253146&r1=253145&r2=253146&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def (original)
+++ cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def Sat Nov 14 16:57:34 2015
@@ -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




More information about the cfe-commits mailing list