From: NAKAMURA Takumi Date: Wed, 3 Feb 2016 00:09:22 +0000 (+0000) Subject: DiagnosticInfoWithDebugLocBase: Appease Twine for now. X-Git-Tag: llvmorg-3.9.0-rc1~15265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8d480d9d555250e6711fc71156f62ba40578430;p=platform%2Fupstream%2Fllvm.git DiagnosticInfoWithDebugLocBase: Appease Twine for now. FIXME: We should get rid of Twine in the record. llvm-svn: 259612 --- 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