[llvm] MC: Store fragment content and fixups out-of-line (PR #146307)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 10:33:27 PDT 2025


================
@@ -512,7 +512,7 @@ void CodeViewContext::encodeInlineLineTable(const MCAssembler &Asm,
 
   MCCVFunctionInfo *SiteInfo = getCVFunctionInfo(Frag.SiteFuncId);
 
-  SmallVectorImpl<char> &Buffer = Frag.getContents();
+  SmallVector<char, 0> Buffer;
   Buffer.clear(); // Clear old contents if we went through relaxation.
----------------
topperc wrote:

clear isn't necessary anymore.

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


More information about the llvm-commits mailing list