diff options
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaLambda.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp index c2d14a44f53d4..ae89b146c409b 100644 --- a/clang/lib/Sema/SemaLambda.cpp +++ b/clang/lib/Sema/SemaLambda.cpp @@ -791,7 +791,8 @@ QualType Sema::buildLambdaInitCaptureInitialization(    // deduce against.    QualType DeductType = Context.getAutoDeductType();    TypeLocBuilder TLB; -  TLB.pushTypeSpec(DeductType).setNameLoc(Loc); +  AutoTypeLoc TL = TLB.push<AutoTypeLoc>(DeductType); +  TL.setNameLoc(Loc);    if (ByRef) {      DeductType = BuildReferenceType(DeductType, true, Loc, Id);      assert(!DeductType.isNull() && "can't build reference to auto"); | 
