-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[DSE] Fix uninitialized variable #142768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DSE] Fix uninitialized variable #142768
Conversation
@llvm/pr-subscribers-llvm-transforms Author: None (clubby789) ChangesIntroduced by accident in #138299 (https://lab.llvm.org/buildbot/#/builders/164/builds/10604) cc @nikic Full diff: https://github.com/llvm/llvm-project/pull/142768.diff 1 Files Affected:
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 59a08e58b226a..49a0c88922c3e 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -2029,7 +2029,7 @@ struct DSEState {
auto *InnerCallee = Malloc->getCalledFunction();
if (!InnerCallee)
return false;
- LibFunc Func;
+ LibFunc Func = NotLibFunc;
StringRef ZeroedVariantName;
if (!TLI.getLibFunc(*InnerCallee, Func) || !TLI.has(Func) ||
Func != LibFunc_malloc) {
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/14082 Here is the relevant piece of the build log for the reference
|
Introduced by accident in #138299 (https://lab.llvm.org/buildbot/#/builders/164/builds/10604)
cc @nikic