From a8d480d9d555250e6711fc71156f62ba40578430 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 3 Feb 2016 00:09:22 +0000 Subject: [PATCH] DiagnosticInfoWithDebugLocBase: Appease Twine for now. FIXME: We should get rid of Twine in the record. llvm-svn: 259612 --- llvm/include/llvm/IR/DiagnosticInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/IR/DiagnosticInfo.h b/llvm/include/llvm/IR/DiagnosticInfo.h index d5e1d9b..256e15e 100644 --- a/llvm/include/llvm/IR/DiagnosticInfo.h +++ b/llvm/include/llvm/IR/DiagnosticInfo.h @@ -16,6 +16,7 @@ #define LLVM_IR_DIAGNOSTICINFO_H #include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/Twine.h" #include "llvm/IR/DebugLoc.h" #include "llvm/IR/Module.h" #include "llvm/Support/Casting.h" @@ -28,7 +29,6 @@ class DiagnosticPrinter; class Function; class Instruction; class LLVMContextImpl; -class Twine; class Value; class DebugLoc; class SMDiagnostic; @@ -591,7 +591,7 @@ public: class DiagnosticInfoUnsupported : public DiagnosticInfoWithDebugLocBase { private: - const Twine &Msg; + Twine Msg; public: /// \p Fn is the function where the diagnostic is being emitted. \p DLoc is -- 2.7.4