From 18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93 Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Fri, 18 Jul 2014 14:23:58 +0000 Subject: Revert "Emit lifetime.start / lifetime.end markers for unnamed temporary objects." This reverts commit dbf785a6432f78a8ec229665876647c4cc610d3d, while I qm investigating a buildbot failure. llvm-svn: 213380 --- clang/lib/CodeGen/CGExpr.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'clang/lib/CodeGen/CGExpr.cpp') diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 1cb43ef6595..63731b7b7d0 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -353,17 +353,6 @@ LValue CodeGenFunction::EmitMaterializeTemporaryExpr( // Create and initialize the reference temporary. llvm::Value *Object = createReferenceTemporary(*this, M, E); - - uint64_t size = - CGM.getDataLayout().getTypeStoreSize(ConvertTypeForMem(E->getType())); - llvm::Value *sizeV = nullptr; - llvm::AllocaInst *Alloca = dyn_cast(Object); - bool useLifetimeMarkers = Alloca && shouldUseLifetimeMarkers(size); - if (useLifetimeMarkers) { - sizeV = llvm::ConstantInt::get(Int64Ty, size); - EmitLifetimeStart(sizeV, Object); - } - if (auto *Var = dyn_cast(Object)) { // If the temporary is a global and has a constant initializer, we may // have already initialized it. @@ -374,10 +363,6 @@ LValue CodeGenFunction::EmitMaterializeTemporaryExpr( } else { EmitAnyExprToMem(E, Object, Qualifiers(), /*IsInit*/true); } - - if (useLifetimeMarkers) - EHStack.pushCleanup(NormalAndEHCleanup, Object, sizeV); - pushTemporaryCleanup(*this, M, E, Object); // Perform derived-to-base casts and/or field accesses, to get from the -- cgit v1.2.3