aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorHsiangkai Wang <kai.wang@sifive.com>2021-05-20 10:22:08 +0800
committerHsiangkai Wang <kai.wang@sifive.com>2021-06-07 23:30:13 +0800
commit2b13ff69794680ea0764e516f5b69b80219771b7 (patch)
treee54b5c3f83f102cc4047b8d3f4e625b58d7eeb12 /clang/lib/CodeGen/CodeGenFunction.h
parentcfcdebaf323575952ef8326c32e47d351b79ee37 (diff)
downloadllvm-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.h2
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);