]> granicus.if.org Git - clang/commitdiff
[driver, ms-inline asm] -fms-compatibility enables -fms-extensions, so this should...
authorChad Rosier <mcrosier@apple.com>
Wed, 5 Dec 2012 23:35:10 +0000 (23:35 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 5 Dec 2012 23:35:10 +0000 (23:35 +0000)
the AsmBlocks language extension as well.
rdar://12808010

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInvocation.cpp

index 7be5e57b6e8aa1132102cd0eec83f809a7058929..711e0e343661ef23c45a97cb18ea9be7f9570505 100644 (file)
@@ -1172,7 +1172,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
   Opts.MicrosoftExt
     = Args.hasArg(OPT_fms_extensions) || Args.hasArg(OPT_fms_compatibility);
   Opts.MicrosoftMode = Args.hasArg(OPT_fms_compatibility);
-  Opts.AsmBlocks = Args.hasArg(OPT_fasm_blocks) || Args.hasArg(OPT_fms_extensions);
+  Opts.AsmBlocks = Args.hasArg(OPT_fasm_blocks) || Opts.MicrosoftExt;
   Opts.MSCVersion = Args.getLastArgIntValue(OPT_fmsc_version, 0, Diags);
   Opts.Borland = Args.hasArg(OPT_fborland_extensions);
   Opts.WritableStrings = Args.hasArg(OPT_fwritable_strings);