Add missing const

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202074 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2014-02-24 21:01:18 +00:00
parent 71e23f0d88
commit 3246123cff
2 changed files with 3 additions and 2 deletions

View File

@ -1493,7 +1493,8 @@ public:
/// undefined. isBigEndian describes the endianness of the target. /// undefined. isBigEndian describes the endianness of the target.
bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef, bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
unsigned &SplatBitSize, bool &HasAnyUndefs, unsigned &SplatBitSize, bool &HasAnyUndefs,
unsigned MinSplatBits = 0, bool isBigEndian = false); unsigned MinSplatBits = 0,
bool isBigEndian = false) const;
bool isConstant() const; bool isConstant() const;

View File

@ -6483,7 +6483,7 @@ bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue,
unsigned &SplatBitSize, unsigned &SplatBitSize,
bool &HasAnyUndefs, bool &HasAnyUndefs,
unsigned MinSplatBits, unsigned MinSplatBits,
bool isBigEndian) { bool isBigEndian) const {
EVT VT = getValueType(0); EVT VT = getValueType(0);
assert(VT.isVector() && "Expected a vector type"); assert(VT.isVector() && "Expected a vector type");
unsigned sz = VT.getSizeInBits(); unsigned sz = VT.getSizeInBits();