diff --git a/clang/include/clang/AST/PrettyPrinter.h b/clang/include/clang/AST/PrettyPrinter.h index 70d65d35fef8..a59c302ffc1e 100644 --- a/clang/include/clang/AST/PrettyPrinter.h +++ b/clang/include/clang/AST/PrettyPrinter.h @@ -14,6 +14,8 @@ #ifndef LLVM_CLANG_AST_PRETTY_PRINTER_H #define LLVM_CLANG_AST_PRETTY_PRINTER_H +#include "clang/Basic/LangOptions.h" + namespace llvm { class raw_ostream; } @@ -44,7 +46,7 @@ struct PrintingPolicy { unsigned Indentation : 8; /// \brief What language we're printing. - const LangOptions &LangOpts; + const LangOptions LangOpts; /// \brief Whether we should suppress printing of the actual specifiers for /// the given type or declaration.