[cfe-dev] StmtPrinter: check Qualifier != NULL even for DependentScopeDeclRefExp

Axel Naumann Axel.Naumann at cern.ch
Mon Jan 24 06:26:18 PST 2011


Hi,

Currently, StmtPrinter assumes that a DependentScopeDeclRefExpr it
visits has a valid NestedNameSpecifier qualifier. Our artificially
dependent nodes (for introducing dynamic scopes) don't have a
NestedNameSpecifier, but we would like to survive printing the AST
nevertheless.

Can I commit the attached, tiny, innocent additional check?

Cheers, Axel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StmtPrinter_QualifierNull.diff
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110124/f3702224/attachment.bin>


More information about the cfe-dev mailing list