]> granicus.if.org Git - clang/commit
CGDebugInfo: Use DIImportedEntity default constructor, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 26 Feb 2015 04:44:27 +0000 (04:44 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 26 Feb 2015 04:44:27 +0000 (04:44 +0000)
commit2ad85551a85980cebfcf559a9965408a06f6e001
tree19904fca4f08d6c0dcf27272849c5eb2b4dba4ac
parent8cb59500afa2dc80370243d907ef4995fb06ec15
CGDebugInfo: Use DIImportedEntity default constructor, NFC

Use the newly minted `DIImportedEntity` default constructor (r230609)
rather than explicitly specifying `nullptr`.  The latter will become
ambiguous when the new debug info hierarchy is committed, since we'll
have both of the following:

    explicit DIImportedEntity(const MDNode *);
    DIImportedEntity(const MDImportedEntity *);

(Currently we just have the former.)

A default constructor is just as clear.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230610 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp