aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-07-01 04:40:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-07-01 04:40:50 +0000
commit3f9b9eb57dafc2a25a6e3d9ee570bd5a884b11e3 (patch)
treebee98c59b2c48a960d06036e3a04d675e8b4c255 /lib/MC
parent8f1bdac3eba0e065c8ebe2a9c671e299c1fc6797 (diff)
downloadexternal_llvm-3f9b9eb57dafc2a25a6e3d9ee570bd5a884b11e3.zip
external_llvm-3f9b9eb57dafc2a25a6e3d9ee570bd5a884b11e3.tar.gz
external_llvm-3f9b9eb57dafc2a25a6e3d9ee570bd5a884b11e3.tar.bz2
Fix use after free.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/SubtargetFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp
index 247f73a..c930baf 100644
--- a/lib/MC/SubtargetFeature.cpp
+++ b/lib/MC/SubtargetFeature.cpp
@@ -182,7 +182,7 @@ SubtargetFeatures::SubtargetFeatures(const StringRef Initial) {
}
-StringRef SubtargetFeatures::getString() const {
+std::string SubtargetFeatures::getString() const {
return Join(Features);
}