diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-01-18 01:03:35 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-01-18 01:03:35 +0000 |
commit | a0babd8efc1facb05ac8c1c9627cfbe45bdb350d (patch) | |
tree | fdb1ada994df84175ed8b5de6b2bba61f2096a67 /include/clang/Basic/BuiltinsWebAssembly.def | |
parent | e1c8be73d0796570ae769fef22f42c8275a291fa (diff) |
[WebAssembly] Update grow_memory's return type.
The grow_memory instruction now returns the previous memory size. Add the
return type to the clang intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/BuiltinsWebAssembly.def')
-rw-r--r-- | include/clang/Basic/BuiltinsWebAssembly.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/BuiltinsWebAssembly.def b/include/clang/Basic/BuiltinsWebAssembly.def index 97b59a1fd8..de56908be8 100644 --- a/include/clang/Basic/BuiltinsWebAssembly.def +++ b/include/clang/Basic/BuiltinsWebAssembly.def @@ -16,9 +16,9 @@ // The format of this database matches clang/Basic/Builtins.def. -// Note that current_memory is not "c" (readnone) because it must be sequenced with -// respect to grow_memory calls. +// Note that current_memory is not "c" (readnone) because it must be sequenced +// with respect to grow_memory calls. BUILTIN(__builtin_wasm_current_memory, "z", "n") -BUILTIN(__builtin_wasm_grow_memory, "vz", "n") +BUILTIN(__builtin_wasm_grow_memory, "zz", "n") #undef BUILTIN |