[llvm] ed35344 - Use std::make_tuple instead of initializer lists to make a bot happy:

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 14:56:02 PDT 2020


Author: Amara Emerson
Date: 2020-08-18T14:55:52-07:00
New Revision: ed3534452486728aa2981537ac8d8c5c3e1e6b0a

URL: https://github.com/llvm/llvm-project/commit/ed3534452486728aa2981537ac8d8c5c3e1e6b0a
DIFF: https://github.com/llvm/llvm-project/commit/ed3534452486728aa2981537ac8d8c5c3e1e6b0a.diff

LOG: Use std::make_tuple instead of initializer lists to make a bot happy:
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index 588a24e1dc57..70e201068f5c 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -646,7 +646,7 @@ bool CombinerHelper::matchSextInRegOfLoad(
   // anyway for most targets.
   if (!isPowerOf2_32(NewSizeBits))
     return false;
-  MatchInfo = {LoadDef->getOperand(0).getReg(), NewSizeBits};
+  MatchInfo = std::make_tuple(LoadDef->getOperand(0).getReg(), NewSizeBits);
   return true;
 }
 
@@ -1963,7 +1963,7 @@ bool CombinerHelper::matchAshrShlToSextInreg(
   if (!isLegalOrBeforeLegalizer(
           {TargetOpcode::G_SEXT_INREG, {MRI.getType(Src)}}))
     return false;
-  MatchInfo = {Src, ShlCst};
+  MatchInfo = std::make_tuple(Src, ShlCst);
   return true;
 }
 bool CombinerHelper::applyAshShlToSextInreg(


        


More information about the llvm-commits mailing list