Fix use after free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2011-07-01 04:40:50 +00:00
parent 8f1bdac3eb
commit 3f9b9eb57d
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);
}