Use std::string instead of StringRef in ClangAttrEmitter.cpp; per report on
authorEli Friedman <eli.friedman@gmail.com>
Thu, 19 Aug 2010 06:11:05 +0000 (06:11 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 19 Aug 2010 06:11:05 +0000 (06:11 +0000)
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

utils/TableGen/ClangAttrEmitter.cpp

index c773e57f94283b97d01a7b18f59834f9befb4d19..ee606e0e50f23e32e485b712eb53bde8b68ec337 100644 (file)
@@ -355,7 +355,7 @@ namespace {
   };
 
   class EnumArgument : public Argument {
-    StringRef type;
+    std::string type;
     std::vector<StringRef> values, enums;
   public:
     EnumArgument(Record &Arg, StringRef Attr)