Skip to content

Commit b9b37ea

Browse files
authored
[clang] Fix sanitizer bot failure after 14ca8d4 (#73928)
Initialize field so there is no use-of-uninitialized-value warning.
1 parent c84061f commit b9b37ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
489489
SS->getScopeRep(), &II);
490490
TypeLocBuilder TLB;
491491
DependentNameTypeLoc TL = TLB.push<DependentNameTypeLoc>(T);
492+
TL.setElaboratedKeywordLoc(SourceLocation());
492493
TL.setQualifierLoc(SS->getWithLocInContext(Context));
493494
TL.setNameLoc(NameLoc);
494495
return CreateParsedType(T, TLB.getTypeSourceInfo(Context, T));

0 commit comments

Comments
 (0)