summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-01-24 22:15:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-01-24 22:15:36 +0000
commit55e4f9d541caf31231004e359c40e1c0cd3720b2 (patch)
tree9dcb6dc6ef60f94a20f9d5a2a947660f67108e5b /contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp
parent6528635081e60bf58faec65b39c0f819e50720fe (diff)
parent8b67a9f01da8048d4ed0a3fefc890e684526cd6a (diff)
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp')
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp3
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");