From 501be9b3d7eff577e2eef89f330e5f4ff01fe9d7 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 21 Oct 2016 14:58:30 +0000 Subject: [PATCH] fix variable names; NFCI 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. llvm-svn: 284826 --- llvm/lib/CodeGen/TargetLoweringBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 84d2256df493..410169788c8c 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -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;