]> granicus.if.org Git - llvm/commitdiff
fix variable names; NFCI
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Oct 2016 14:58:30 +0000 (14:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Oct 2016 14:58:30 +0000 (14:58 +0000)
Because we're just 'or-ing' these 2 variables later in the code, I
don't think there's a logical bug here, but of course the string with
"no size" is the one that should have the size suffix stripped off.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284826 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetLoweringBase.cpp

index 84d2256df493612b0af5e630ac35b2f0be0e7f77..410169788c8c6bab8add1b477980f9f14b9bd334 100644 (file)
@@ -1973,7 +1973,7 @@ static int getOpEnabled(bool IsSqrt, EVT VT, StringRef Override) {
   // The attribute string may omit the size suffix ('f'/'d').
   std::string VTName = getReciprocalOpName(IsSqrt, VT);
   std::string VTNameNoSize = VTName;
-  VTName.pop_back();
+  VTNameNoSize.pop_back();
   static const char DisabledPrefix = '!';
 
   for (StringRef RecipType : OverrideVector) {
@@ -2028,7 +2028,7 @@ static int getOpRefinementSteps(bool IsSqrt, EVT VT, StringRef Override) {
   // The attribute string may omit the size suffix ('f'/'d').
   std::string VTName = getReciprocalOpName(IsSqrt, VT);
   std::string VTNameNoSize = VTName;
-  VTName.pop_back();
+  VTNameNoSize.pop_back();
 
   for (StringRef RecipType : OverrideVector) {
     size_t RefPos;