Skip to content

Commit 8ed3cb0

Browse files
authored
[DSE] Fix uninitialized variable (#142768)
Introduced by accident in #138299 (https://lab.llvm.org/buildbot/#/builders/164/builds/10604)
1 parent 5f8cf33 commit 8ed3cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ struct DSEState {
20292029
auto *InnerCallee = Malloc->getCalledFunction();
20302030
if (!InnerCallee)
20312031
return false;
2032-
LibFunc Func;
2032+
LibFunc Func = NotLibFunc;
20332033
StringRef ZeroedVariantName;
20342034
if (!TLI.getLibFunc(*InnerCallee, Func) || !TLI.has(Func) ||
20352035
Func != LibFunc_malloc) {

0 commit comments

Comments
 (0)