diff options
author | Derek Schuff <dschuff@google.com> | 2016-05-02 17:26:19 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2016-05-02 17:26:19 +0000 |
commit | 4f7d65a7a24a26018f39f4e1143ead64d95559fc (patch) | |
tree | f912927e6bbee743da5368703cba0bb3a173d884 /lib | |
parent | a10fe99ac8f5f63a9ec2227c9c20b6a28de9785e (diff) | |
download | clang-4f7d65a7a24a26018f39f4e1143ead64d95559fc.tar.gz |
[WebAssembly] Rename memory_size intrinsic to current_memory
This follows the recent change in the wasm spec.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index 56438ae613..a68394bfc7 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -7441,9 +7441,9 @@ Value *CodeGenFunction::EmitNVPTXBuiltinExpr(unsigned BuiltinID, Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, const CallExpr *E) { switch (BuiltinID) { - case WebAssembly::BI__builtin_wasm_memory_size: { + case WebAssembly::BI__builtin_wasm_current_memory: { llvm::Type *ResultType = ConvertType(E->getType()); - Value *Callee = CGM.getIntrinsic(Intrinsic::wasm_memory_size, ResultType); + Value *Callee = CGM.getIntrinsic(Intrinsic::wasm_current_memory, ResultType); return Builder.CreateCall(Callee); } case WebAssembly::BI__builtin_wasm_grow_memory: { |