[llvm] r233475 - Convert feature strings to lowercase even if they have a '+'/'-' in front of them.
Craig Topper
craig.topper at gmail.com
Fri Mar 27 21:59:14 PDT 2015
Author: ctopper
Date: Fri Mar 27 23:59:14 2015
New Revision: 233475
URL: http://llvm.org/viewvc/llvm-project?rev=233475&view=rev
Log:
Convert feature strings to lowercase even if they have a '+'/'-' in front of them.
Modified:
llvm/trunk/lib/MC/SubtargetFeature.cpp
Modified: llvm/trunk/lib/MC/SubtargetFeature.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/SubtargetFeature.cpp?rev=233475&r1=233474&r2=233475&view=diff
==============================================================================
--- llvm/trunk/lib/MC/SubtargetFeature.cpp (original)
+++ llvm/trunk/lib/MC/SubtargetFeature.cpp Fri Mar 27 23:59:14 2015
@@ -85,7 +85,7 @@ void SubtargetFeatures::AddFeature(Strin
// 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.
More information about the llvm-commits
mailing list