[llvm] 824113f - [LLParser] Use poison instead of undef when cleaning up forward refs
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 07:36:13 PDT 2024
Author: Nikita Popov
Date: 2024-06-24T16:36:04+02:00
New Revision: 824113f7b1fe79e9e5258323a0fdfbf960ab315a
URL: https://github.com/llvm/llvm-project/commit/824113f7b1fe79e9e5258323a0fdfbf960ab315a
DIFF: https://github.com/llvm/llvm-project/commit/824113f7b1fe79e9e5258323a0fdfbf960ab315a.diff
LOG: [LLParser] Use poison instead of undef when cleaning up forward refs
Added:
Modified:
llvm/lib/AsmParser/LLParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index b92e613eaa418..21d386097fc63 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -3546,7 +3546,7 @@ LLParser::PerFunctionState::~PerFunctionState() {
if (isa<BasicBlock>(P.second.first))
continue;
P.second.first->replaceAllUsesWith(
- UndefValue::get(P.second.first->getType()));
+ PoisonValue::get(P.second.first->getType()));
P.second.first->deleteValue();
}
@@ -3554,7 +3554,7 @@ LLParser::PerFunctionState::~PerFunctionState() {
if (isa<BasicBlock>(P.second.first))
continue;
P.second.first->replaceAllUsesWith(
- UndefValue::get(P.second.first->getType()));
+ PoisonValue::get(P.second.first->getType()));
P.second.first->deleteValue();
}
}
More information about the llvm-commits
mailing list