From 5ce6ef629e1dfdf78bab0e359a7963ee30511041 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 28 Mar 2015 04:59:14 +0000 Subject: [PATCH] Convert feature strings to lowercase even if they have a '+'/'-' in front of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233475 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/SubtargetFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp index f893104736a..fcb43d63cb9 100644 --- a/lib/MC/SubtargetFeature.cpp +++ b/lib/MC/SubtargetFeature.cpp @@ -85,7 +85,7 @@ void SubtargetFeatures::AddFeature(StringRef String) { // Don't add empty features. if (!String.empty()) // Convert to lowercase, prepend flag if we don't already have a flag. - Features.push_back(hasFlag(String) ? String.str() : "+" + String.lower()); + Features.push_back(hasFlag(String) ? String.lower() : "+" + String.lower()); } /// Find KV in array using binary search.