[PATCH] D30831: [ASTImporter] Import fix of GCCAsmStmts w/ missing symbolic operands
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 13 02:26:40 PDT 2017
a.sidorin added a comment.
Hello Zoltan,
Thank you for the patch. There is an inline comment.
================
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
----------------
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.
https://reviews.llvm.org/D30831
More information about the cfe-commits
mailing list