[all-commits] [llvm/llvm-project] 4c0a0f: [SandboxVectorizer][NFCI] Fix use of possibly-unin...
Tyler Lanphear via All-commits
all-commits at lists.llvm.org
Thu Jan 9 22:43:51 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4c0a0f72418b21161b5c1fb9225462bd039121e3
https://github.com/llvm/llvm-project/commit/4c0a0f72418b21161b5c1fb9225462bd039121e3
Author: Tyler Lanphear <tylanphear at gmail.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M llvm/include/llvm/SandboxIR/Context.h
M llvm/lib/SandboxIR/Context.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list