llvm-project/lldb/scripts/clang.decl-printer-referenc...

14 lines
537 B
Diff

Index: lib/AST/DeclPrinter.cpp
===================================================================
--- lib/AST/DeclPrinter.cpp (revision 152772)
+++ lib/AST/DeclPrinter.cpp (working copy)
@@ -114,6 +114,8 @@
BaseType = FTy->getResultType();
else if (const VectorType *VTy = BaseType->getAs<VectorType>())
BaseType = VTy->getElementType();
+ else if (const ReferenceType *RTy = BaseType->getAs<ReferenceType>())
+ BaseType = RTy->getPointeeType();
else
llvm_unreachable("Unknown declarator!");
}