[clang] [Clang] Diagnose nested inline asm variants (PR #232686)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 18 01:11:29 PDT 2026
================
@@ -698,6 +698,7 @@ unsigned GCCAsmStmt::AnalyzeAsmString(SmallVectorImpl<AsmStringPiece>&Pieces,
std::string CurStringPiece;
bool HasVariants = !C.getTargetInfo().hasNoAsmVariants();
+ bool InVariant = false;
----------------
ojhunt wrote:
I'd rather a different name for this - `InVariant` was difficult to read because obviously "invariant" is a word, with a very different meaning. `IsParsingVariant` or something would probably be clearer.
https://github.com/llvm/llvm-project/pull/232686
More information about the cfe-commits
mailing list