mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
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:
parent
8f1bdac3eb
commit
3f9b9eb57d
@ -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);
|
||||
|
@ -182,7 +182,7 @@ SubtargetFeatures::SubtargetFeatures(const StringRef Initial) {
|
||||
}
|
||||
|
||||
|
||||
StringRef SubtargetFeatures::getString() const {
|
||||
std::string SubtargetFeatures::getString() const {
|
||||
return Join(Features);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user