Skip to content

Commit 227f6ae

Browse files
committed
fix build break after merge
1 parent c8fd0b4 commit 227f6ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -869,11 +869,9 @@ std::optional<LValue> CGHLSLRuntime::emitResourceArraySubscriptExpr(
869869
// create a temporary variable for the resource class instance (we need to
870870
// return an LValue)
871871
RawAddress TmpVar = CGF.CreateMemTemp(ResourceTy);
872-
if (auto *Size = CGF.EmitLifetimeStart(
873-
CGM.getDataLayout().getTypeAllocSize(TmpVar.getElementType()),
874-
TmpVar.getPointer())) {
872+
if (CGF.EmitLifetimeStart(TmpVar.getPointer())) {
875873
CGF.pushFullExprCleanup<CodeGenFunction::CallLifetimeEnd>(
876-
NormalEHLifetimeMarker, TmpVar, Size);
874+
NormalEHLifetimeMarker, TmpVar);
877875
}
878876
AggValueSlot ValueSlot = AggValueSlot::forAddr(
879877
TmpVar, Qualifiers(), AggValueSlot::IsDestructed_t(true),

0 commit comments

Comments
 (0)