[clang] [llvm] MSan: poison the default-init allocation before calling constructors (PR #188001)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon May 11 06:53:53 PDT 2026
================
@@ -239,11 +239,13 @@ Instruction *InstCombinerImpl::SimplifyAnyMemSet(AnyMemSetInst *MI) {
// Remove memset with an undef value.
// FIXME: This is technically incorrect because it might overwrite a poison
// value. Change to PoisonValue once #52930 is resolved.
- if (isa<UndefValue>(MI->getValue())) {
- // Set the size of the copy to 0, it will be deleted on the next iteration.
- MI->setLength((uint64_t)0);
- return MI;
- }
+ // Postponed to SelectionDAG lowering phase.
----------------
arsenm wrote:
The comment doesn't make sense and this shouldn't be in this PR
https://github.com/llvm/llvm-project/pull/188001
More information about the cfe-commits
mailing list