[llvm] Allow .alt_entry symbols to pass the .cfi nesting check (PR #82268)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 24 14:26:24 PST 2024
================
@@ -1950,7 +1951,9 @@ bool AsmParser::parseStatement(ParseStatementInfo &Info,
Lex();
}
- if (MAI.hasSubsectionsViaSymbols() && CFIStartProcLoc && Sym->isExternal())
+ if (MAI.hasSubsectionsViaSymbols() && CFIStartProcLoc &&
+ Sym->isExternal() &&
+ (!isa<MCSymbolMachO>(Sym) || !cast<MCSymbolMachO>(Sym)->isAltEntry()))
----------------
MaskRay wrote:
Since only `MCAsmInfoDarwin` sets `hasSubsectionsViaSymbols`. The `isa<MCSymbolMachO>(Sym)` check is unneeded.
https://github.com/llvm/llvm-project/pull/82268
More information about the llvm-commits
mailing list