[llvm-branch-commits] [llvm] [MC] Preserve target MCSubtargetInfo subclass in MCContext::getSubtargetCopy (PR #227562)

Alexander Richardson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 6 04:05:57 PDT 2026


================
@@ -949,7 +949,7 @@ MCSectionDXContainer *MCContext::getDXContainerSection(StringRef Section,
 }
 
 MCSubtargetInfo &MCContext::getSubtargetCopy(const MCSubtargetInfo &STI) {
----------------
arichardson wrote:

@arsenm does the new approach with a simple clone() function look good? 

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


More information about the llvm-branch-commits mailing list