[llvm-commits] [llvm] r111513 - /llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Aug 18 23:11:05 PDT 2010
Author: efriedma
Date: Thu Aug 19 01:11:05 2010
New Revision: 111513
URL: http://llvm.org/viewvc/llvm-project?rev=111513&view=rev
Log:
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.
Modified:
llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp
Modified: llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp?rev=111513&r1=111512&r2=111513&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ClangAttrEmitter.cpp Thu Aug 19 01:11:05 2010
@@ -355,7 +355,7 @@
};
class EnumArgument : public Argument {
- StringRef type;
+ std::string type;
std::vector<StringRef> values, enums;
public:
EnumArgument(Record &Arg, StringRef Attr)
More information about the llvm-commits
mailing list