diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-24 22:15:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-24 22:15:36 +0000 |
commit | 55e4f9d541caf31231004e359c40e1c0cd3720b2 (patch) | |
tree | 9dcb6dc6ef60f94a20f9d5a2a947660f67108e5b /contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp | |
parent | 6528635081e60bf58faec65b39c0f819e50720fe (diff) | |
parent | 8b67a9f01da8048d4ed0a3fefc890e684526cd6a (diff) |
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp b/contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp index c2d14a44f53d..ae89b146c409 100644 --- a/contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp +++ b/contrib/llvm-project/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"); |