OSDN Git Service

Add missing const
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Feb 2014 21:01:18 +0000 (21:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Feb 2014 21:01:18 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202074 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 216d40c..aae304d 100644 (file)
@@ -1493,7 +1493,8 @@ public:
   /// undefined.  isBigEndian describes the endianness of the target.
   bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
                        unsigned &SplatBitSize, bool &HasAnyUndefs,
-                       unsigned MinSplatBits = 0, bool isBigEndian = false);
+                       unsigned MinSplatBits = 0,
+                       bool isBigEndian = false) const;
 
   bool isConstant() const;
 
index 3ab8ad8..e81c159 100644 (file)
@@ -6483,7 +6483,7 @@ bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue,
                                         unsigned &SplatBitSize,
                                         bool &HasAnyUndefs,
                                         unsigned MinSplatBits,
-                                        bool isBigEndian) {
+                                        bool isBigEndian) const {
   EVT VT = getValueType(0);
   assert(VT.isVector() && "Expected a vector type");
   unsigned sz = VT.getSizeInBits();