[clang] 2f25345 - [clang] fix missing initialization msan failure

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 1 17:07:09 PDT 2025


Author: Matheus Izvekov
Date: 2025-04-01T21:06:38-03:00
New Revision: 2f25345670081f1ca460ea3f42a0585ef3f1e877

URL: https://github.com/llvm/llvm-project/commit/2f25345670081f1ca460ea3f42a0585ef3f1e877
DIFF: https://github.com/llvm/llvm-project/commit/2f25345670081f1ca460ea3f42a0585ef3f1e877.diff

LOG: [clang] fix missing initialization msan failure

fixes msan failure reported here: https://lab.llvm.org/buildbot/#/builders/94/builds/5821/steps/17/logs/stdio

This was a regression introduced here: https://github.com/llvm/llvm-project/pull/133610

Added: 
    

Modified: 
    clang/lib/Sema/SemaCXXScopeSpec.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaCXXScopeSpec.cpp b/clang/lib/Sema/SemaCXXScopeSpec.cpp
index 545da5c295832..ea7936b0e5b8f 100644
--- a/clang/lib/Sema/SemaCXXScopeSpec.cpp
+++ b/clang/lib/Sema/SemaCXXScopeSpec.cpp
@@ -873,6 +873,7 @@ bool Sema::ActOnCXXNestedNameSpecifier(Scope *S,
     DependentTemplateSpecializationTypeLoc SpecTL
       = Builder.push<DependentTemplateSpecializationTypeLoc>(T);
     SpecTL.setElaboratedKeywordLoc(SourceLocation());
+    SpecTL.setQualifierLoc(NestedNameSpecifierLoc());
     SpecTL.setTemplateKeywordLoc(TemplateKWLoc);
     SpecTL.setTemplateNameLoc(TemplateNameLoc);
     SpecTL.setLAngleLoc(LAngleLoc);


        


More information about the cfe-commits mailing list