Fix use after free.

llvm-svn: 134234
This commit is contained in:
Rafael Espindola 2011-07-01 04:40:50 +00:00
parent 1d55f1b936
commit 968af4fee2
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public:
explicit SubtargetFeatures(const StringRef Initial = "");
/// Features string accessors.
StringRef getString() const;
std::string getString() const;
/// Adding Features.
void AddFeature(const StringRef String, bool IsEnabled = true);

View File

@ -182,7 +182,7 @@ SubtargetFeatures::SubtargetFeatures(const StringRef Initial) {
}
StringRef SubtargetFeatures::getString() const {
std::string SubtargetFeatures::getString() const {
return Join(Features);
}