[PATCH] D30831: [ASTImporter] Import fix of GCCAsmStmts w/ missing symbolic operands

Zoltán Gera via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 05:32:52 PDT 2017

gerazo marked an inline comment as done.
gerazo added inline comments.

Comment at: lib/AST/ASTImporter.cpp:5221
     IdentifierInfo *ToII = Importer.Import(S->getOutputIdentifier(I));
-    if (!ToII)
-      return nullptr;
+    // ToII is nullptr when no symbolic name is given for output operand
+    // see ParseStmtAsm::ParseAsmOperandsOpt
a.sidorin wrote:
> In such cases, we should check that FromIdentifier is `nullptr` too (to detect cases where the result is `nullptr` due to import error). The check will be still present but will look like:
> ```
> if (!ToII && S->getOutputIdentifier())
>   return nullptr;
> ```
> The same below.
Thank you Aleksei, done.


More information about the cfe-commits mailing list