[clang] [clang] Fix sanitizer bot failure after 14ca8d4 (PR #73928)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 04:12:56 PST 2023
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/73928
Initialize field so there is no use-of-uninitialized-value warning.
>From dd3eb69268bffb92a9deaf93513c0871d8c39b72 Mon Sep 17 00:00:00 2001
From: "Podchishchaeva, Mariya" <mariya.podchishchaeva at intel.com>
Date: Thu, 30 Nov 2023 04:09:33 -0800
Subject: [PATCH] [clang] Fix sanitizer bot failure after
14ca8d44d0f44ea5125b3c41b66276c902929a54
Initialize field so there is no use-of-uninitialized-value warning.
---
clang/lib/Sema/SemaDecl.cpp | 1 +
1 file changed, 1 insertion(+)
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));
More information about the cfe-commits
mailing list