diff options
author | Hsiangkai Wang <kai.wang@sifive.com> | 2021-05-20 10:22:08 +0800 |
---|---|---|
committer | Hsiangkai Wang <kai.wang@sifive.com> | 2021-06-07 23:30:13 +0800 |
commit | 2b13ff69794680ea0764e516f5b69b80219771b7 (patch) | |
tree | e54b5c3f83f102cc4047b8d3f4e625b58d7eeb12 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | cfcdebaf323575952ef8326c32e47d351b79ee37 (diff) | |
download | llvm-2b13ff69794680ea0764e516f5b69b80219771b7.zip llvm-2b13ff69794680ea0764e516f5b69b80219771b7.tar.gz llvm-2b13ff69794680ea0764e516f5b69b80219771b7.tar.bz2 |
[Clang][CodeGen] Set the size of llvm.lifetime to unknown for scalable types.
If the memory object is scalable type, we do not know the exact size of
it at compile time. Set the size of lifetime marker to unknown if the
object is scalable one.
Differential Revision: https://reviews.llvm.org/D102822
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index b799ebc..564063d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2872,7 +2872,7 @@ public: void EmitSehTryScopeBegin(); void EmitSehTryScopeEnd(); - llvm::Value *EmitLifetimeStart(uint64_t Size, llvm::Value *Addr); + llvm::Value *EmitLifetimeStart(llvm::TypeSize Size, llvm::Value *Addr); void EmitLifetimeEnd(llvm::Value *Size, llvm::Value *Addr); llvm::Value *EmitCXXNewExpr(const CXXNewExpr *E); |