[llvm] 0a85b31 - LowerTypeTests: Fix UAF.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 12:34:44 PDT 2025
Author: Peter Collingbourne
Date: 2025-06-05T12:33:13-07:00
New Revision: 0a85b31a817ddada5797bbc526e61443d6b386a4
URL: https://github.com/llvm/llvm-project/commit/0a85b31a817ddada5797bbc526e61443d6b386a4
DIFF: https://github.com/llvm/llvm-project/commit/0a85b31a817ddada5797bbc526e61443d6b386a4.diff
LOG: LowerTypeTests: Fix UAF.
Added:
Modified:
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
index 1bceb29d3f527..5d505ee43fb2f 100644
--- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
@@ -2525,6 +2525,7 @@ PreservedAnalyses SimplifyTypeTestsPass::run(Module &M,
CI->replaceAllUsesWith(ConstantInt::getTrue(M.getContext()));
CI->eraseFromParent();
Changed = true;
+ continue;
}
}
auto *CE = dyn_cast<ConstantExpr>(U);
More information about the llvm-commits
mailing list