aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorTyler Lanphear <tylanphear@gmail.com>2025-01-09 22:43:30 -0800
committerGitHub <noreply@github.com>2025-01-09 22:43:30 -0800
commit4c0a0f72418b21161b5c1fb9225462bd039121e3 (patch)
treece23205f9d80fdc9784667c31f7ba377599c940f /llvm/lib/CodeGen/RegAllocBasic.cpp
parenta8e1135baa9074f7c088c8e1999561f88699b56e (diff)
downloadllvm-4c0a0f72418b21161b5c1fb9225462bd039121e3.zip
llvm-4c0a0f72418b21161b5c1fb9225462bd039121e3.tar.gz
llvm-4c0a0f72418b21161b5c1fb9225462bd039121e3.tar.bz2
[SandboxVectorizer][NFCI] Fix use of possibly-uninitialized scalar. (#122201)
The `EraseCallbackID` field is not always initialized in the ctor for SeedCollector; if not, it will be used uninitialized by its dtor. This could potentially lead to the erasure of a random callback, leading to a bug. Fixed by making `CallbackID` an opaque type, which is always default-initialized to an invalid ID.
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
0 files changed, 0 insertions, 0 deletions