[PATCH] D133481: Change operands of Add in AsmWriterTest from Undef to Poison
Nuno Lopes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 03:37:39 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaeae703b4df2: [unittests] Change operands of Add in AsmWriterTest from Undef to Poison (authored by ManuelJBrito, committed by nlopes).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133481/new/
https://reviews.llvm.org/D133481
Files:
llvm/unittests/IR/AsmWriterTest.cpp
Index: llvm/unittests/IR/AsmWriterTest.cpp
===================================================================
--- llvm/unittests/IR/AsmWriterTest.cpp
+++ llvm/unittests/IR/AsmWriterTest.cpp
@@ -24,14 +24,14 @@
// has metadata attached but no parent.
LLVMContext Ctx;
auto Ty = Type::getInt32Ty(Ctx);
- auto Undef = UndefValue::get(Ty);
- std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Undef, Undef));
+ auto Poison = PoisonValue::get(Ty);
+ std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Poison, Poison));
Add->setMetadata(
"", MDNode::get(Ctx, {ConstantAsMetadata::get(ConstantInt::get(Ty, 1))}));
std::string S;
raw_string_ostream OS(S);
Add->print(OS);
- std::size_t r = OS.str().find("<badref> = add i32 undef, undef, !<empty");
+ std::size_t r = OS.str().find("<badref> = add i32 poison, poison, !<empty");
EXPECT_TRUE(r != std::string::npos);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133481.458699.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220908/49ab7957/attachment.bin>
More information about the llvm-commits
mailing list