There is no initialization of the data between allocation
and first getBeginLoc call.
allocation: llvm-project/clang/lib/AST/ASTContext.cpp:3022
use: llvm-project/clang/lib/AST/TypeLoc.cpp:222
Msan report https://reviews.llvm.org/P8306
Differential D150499
[AST] Initialized data after TypeSourceInfo vitalybuka on May 12 2023, 5:07 PM. Authored by
Details
There is no initialization of the data between allocation allocation: llvm-project/clang/lib/AST/ASTContext.cpp:3022 Msan report https://reviews.llvm.org/P8306
Diff Detail
Event TimelineComment Actions This memory is supposed to be initialized when we copy the TypeLoc. Are you observing that not happening? Comment Actions ping, any concerns regarding this patch? Comment Actions Oh, I rerun msan bot locally and it looked like issue dissipated, but I probably checked wrong logs. Let's land this trivial fix, and if owners of the AST believe the root-cause is different, we can investigate later. |