StmtPrinter: check Qualifier != NULL even for DependentScopeDeclRefExp


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

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

Cheers, Axel.

StmtPrinter_QualifierNull.diff (617 Bytes)

Yes, this is fine.

  - Doug