Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang] Fix sanitizer bot failure after 14ca8d4 #73928

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

Fznamznon
Copy link
Contributor

Initialize field so there is no use-of-uninitialized-value warning.

Initialize field so there is no use-of-uninitialized-value warning.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Nov 30, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Nov 30, 2023

@llvm/pr-subscribers-clang

Author: Mariya Podchishchaeva (Fznamznon)

Changes

Initialize field so there is no use-of-uninitialized-value warning.


Full diff: https://github.com/llvm/llvm-project/pull/73928.diff

1 Files Affected:

  • (modified) clang/lib/Sema/SemaDecl.cpp (+1)
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 67d0997b32e157a..c0d21ec330acfd8 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -489,6 +489,7 @@ ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
                                                 SS->getScopeRep(), &II);
       TypeLocBuilder TLB;
       DependentNameTypeLoc TL = TLB.push<DependentNameTypeLoc>(T);
+      TL.setElaboratedKeywordLoc(SourceLocation());
       TL.setQualifierLoc(SS->getWithLocInContext(Context));
       TL.setNameLoc(NameLoc);
       return CreateParsedType(T, TLB.getTypeSourceInfo(Context, T));

@Fznamznon Fznamznon merged commit b9b37ea into llvm:main Nov 30, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants