[clang] [llvm] [LFI] Add MCLFIRewriter infrastructure (PR #172906)

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 09:15:13 PST 2026


================
@@ -745,8 +746,8 @@ extern cl::opt<unsigned> AsmMacroMaxNestingDepth;
 
 AsmParser::AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
                      const MCAsmInfo &MAI, unsigned CB = 0)
-    : MCAsmParser(Ctx, Out, SM, MAI), CurBuffer(CB ? CB : SM.getMainFileID()),
-      MacrosEnabledFlag(true) {
+    : MCAsmParser(Ctx, Out, SM, MAI), LFIParser(nullptr),
----------------
aengelke wrote:

No need to explicitly initialize LFIParser, unique_ptr defaults to nullptr.

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


More information about the cfe-commits mailing list