[llvm] [SandboxIR] Add missing export to symbol used in test (PR #225505)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 12:57:11 PDT 2026


https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/225505

>From f0861a4b1a0847d720b89ea48b6843a9b0442970 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 15 Sep 2026 19:12:53 +0000
Subject: [PATCH 1/2] [SandboxIR] Add missing export to symbol used in test

---
 llvm/lib/SandboxIR/Instruction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/SandboxIR/Instruction.cpp b/llvm/lib/SandboxIR/Instruction.cpp
index 80c27499f311ab..226ef9e55ce308 100644
--- a/llvm/lib/SandboxIR/Instruction.cpp
+++ b/llvm/lib/SandboxIR/Instruction.cpp
@@ -1164,7 +1164,7 @@ SwitchInst::CaseHandleImpl<LLVMCaseItT, BlockT, ConstT>::getCaseSuccessor()
   return cast<BlockT>(Ctx.getValue(LLVMBB));
 }
 
-template class SwitchInst::CaseHandleImpl<llvm::SwitchInst::CaseIt, BasicBlock,
+template class LLVM_ABI_FOR_TEST SwitchInst::CaseHandleImpl<llvm::SwitchInst::CaseIt, BasicBlock,
                                           ConstantInt>;
 template class SwitchInst::CaseItImpl<llvm::SwitchInst::CaseIt, BasicBlock,
                                       ConstantInt>;

>From cc173a41e2bb5eb4ac1ab0f427f6aac78a5dc4f9 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 22 Sep 2026 19:51:53 +0000
Subject: [PATCH 2/2] Fix formatting

---
 llvm/lib/SandboxIR/Instruction.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/SandboxIR/Instruction.cpp b/llvm/lib/SandboxIR/Instruction.cpp
index 226ef9e55ce308..e75672076666b2 100644
--- a/llvm/lib/SandboxIR/Instruction.cpp
+++ b/llvm/lib/SandboxIR/Instruction.cpp
@@ -1164,8 +1164,8 @@ SwitchInst::CaseHandleImpl<LLVMCaseItT, BlockT, ConstT>::getCaseSuccessor()
   return cast<BlockT>(Ctx.getValue(LLVMBB));
 }
 
-template class LLVM_ABI_FOR_TEST SwitchInst::CaseHandleImpl<llvm::SwitchInst::CaseIt, BasicBlock,
-                                          ConstantInt>;
+template class LLVM_ABI_FOR_TEST SwitchInst::CaseHandleImpl<
+    llvm::SwitchInst::CaseIt, BasicBlock, ConstantInt>;
 template class SwitchInst::CaseItImpl<llvm::SwitchInst::CaseIt, BasicBlock,
                                       ConstantInt>;
 template class SwitchInst::CaseHandleImpl<llvm::SwitchInst::ConstCaseIt,



More information about the llvm-commits mailing list