Skip to content

Commit 697093c

Browse files
authored
Update CGDecl.cpp
1 parent 88c3e0e commit 697093c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/CodeGen/CGDecl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,10 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
14661466
(Ty.getAddressSpace() == LangAS::opencl_private && getLangOpts().OpenCL));
14671467

14681468
AutoVarEmission emission(D);
1469-
1469+
1470+
if (Ty->isDependentType())
1471+
return emission;
1472+
14701473
bool isEscapingByRef = D.isEscapingByref();
14711474
emission.IsEscapingByRef = isEscapingByRef;
14721475

0 commit comments

Comments
 (0)