[llvm] [SandboxIR] Implement UnreachableInst (PR #101856)
Julius Alexandre via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 19:03:56 PDT 2024
================
@@ -2037,3 +2037,33 @@ define void @foo(i32 %arg) {
}
EXPECT_EQ(NewPHI->getNumIncomingValues(), PHI->getNumIncomingValues());
}
+
+TEST_F(SandboxIRTest, UnreachableInst) {
+ parseIR(C, R"IR(
+define void @foo() {
+ call void @llvm.donothing()
+ unreachable
+ ret void
----------------
medievalghoul wrote:
Brillant 😄, I tested it out and it works fine. Thanks for the solution, I submitted the commit.
https://github.com/llvm/llvm-project/pull/101856
More information about the llvm-commits
mailing list