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 | dbd24b45933be18b2bc933bea7714695030a6644 (patch) | |
tree | d4b7009882e98c067c3d152927d2d91527f31e8e /clang/lib | |
parent | 31680dd832ebfd8baf017fd77db49d8fde13d366 (diff) | |
download | bcm5719-llvm-dbd24b45933be18b2bc933bea7714695030a6644.tar.gz bcm5719-llvm-dbd24b45933be18b2bc933bea7714695030a6644.zip |
[WebAssembly] Rename memory_size intrinsic to current_memory
This follows the recent change in the wasm spec.
llvm-svn: 268256
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 56438ae613b..a68394bfc71 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/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: { |