Commit 49c519a8 authored by David Blaikie's avatar David Blaikie
Browse files

DebugInfo: Rebuild decltype(nullptr) as 'std::nullptr_t'

Now that Clang's been changed to render nullptr types/template
parameters as 'std::nullptr_t' do the same thing down here.

(Clang commit: 131e8786 )
parent 2d1ffad0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ struct DWARFTypePrinter {
    case DW_TAG_unspecified_type: {
      StringRef TypeName = D.getShortName();
      if (TypeName == "decltype(nullptr)")
        TypeName = "nullptr_t";
        TypeName = "std::nullptr_t";
      Word = true;
      OS << TypeName;
      EndedWithTemplate = false;
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@
# accurate and not be ambiguous with some arbitrary ::nullptr_t a user could
# define. If that change is made, this code/test should be fixed too.
# nullptr_t unspecified type
# CHECK:   DW_AT_type{{.*}}"nullptr_t"
# CHECK:   DW_AT_type{{.*}}"std::nullptr_t"

# reference_type
# CHECK:   DW_AT_type{{.*}}"int &"