From: Eli Friedman Date: Thu, 19 Aug 2010 06:11:05 +0000 (+0000) Subject: Use std::string instead of StringRef in ClangAttrEmitter.cpp; per report on X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8fa3926918dc5fbeec573c2151282749b079737;p=oota-llvm.git Use std::string instead of StringRef in ClangAttrEmitter.cpp; per report on cfe-dev, fixes an error compiling with MSVC. Using a StringRef here doesn't look safe in any case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111513 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index c773e57f942..ee606e0e50f 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -355,7 +355,7 @@ namespace { }; class EnumArgument : public Argument { - StringRef type; + std::string type; std::vector values, enums; public: EnumArgument(Record &Arg, StringRef Attr)