Skip to content

Commit 698b3a6

Browse files
clubby789rorth
authored andcommitted
[DSE] Fix uninitialized variable (llvm#142768)
Introduced by accident in llvm#138299 (https://lab.llvm.org/buildbot/#/builders/164/builds/10604)
1 parent faca51a commit 698b3a6

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)