diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-04-07 14:59:34 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 14:59:34 +0700 |
commit | 7b3b4a5b1b5f8c3ae6855c92cdbe783c804408ea (patch) | |
tree | 9f0825ed32f12f9c65e5784818dcbf24e5b4785b /llvm/lib/IR/Value.cpp | |
parent | 31ef7acf12e7f5011a813dcfd08b821ec44865f0 (diff) | |
download | llvm-7b3b4a5b1b5f8c3ae6855c92cdbe783c804408ea.zip llvm-7b3b4a5b1b5f8c3ae6855c92cdbe783c804408ea.tar.gz llvm-7b3b4a5b1b5f8c3ae6855c92cdbe783c804408ea.tar.bz2 |
IR: Use poison in dropDroppableUse (#134576)
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 2c41101..bb8d692 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -221,7 +221,7 @@ void Value::dropDroppableUse(Use &U) { if (OpNo == 0) U.set(ConstantInt::getTrue(Assume->getContext())); else { - U.set(UndefValue::get(U.get()->getType())); + U.set(PoisonValue::get(U.get()->getType())); CallInst::BundleOpInfo &BOI = Assume->getBundleOpInfoForOperand(OpNo); BOI.Tag = Assume->getContext().pImpl->getOrInsertBundleTag("ignore"); } |