[llvm] [SandboxIR] Implement UndefValue (PR #107628)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 11:53:19 PDT 2024


================
@@ -642,6 +642,7 @@ define void @foo() {
   // Check classof() and creation.
   auto *Poison = cast<sandboxir::PoisonValue>(I0->getOperand(0));
   EXPECT_EQ(Poison->getType(), Int32Ty);
+  EXPECT_TRUE(isa<sandboxir::UndefValue>(Poison)); // Poison is Undef
----------------
tschuett wrote:

This is correct.

https://github.com/llvm/llvm-project/pull/107628


More information about the llvm-commits mailing list