Fixing a compile warning triggered in MSVC about constant truncation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2012-03-10 23:03:01 +00:00
parent 9130b42a85
commit a13fb621bb

View File

@ -2468,7 +2468,8 @@ protected:
virtual SwitchInst *clone_impl() const;
public:
static const unsigned DefaultPseudoIndex = ~0L-1; // -2
// -2
static const unsigned DefaultPseudoIndex = static_cast<unsigned>(~0L-1);
template <class SwitchInstTy, class ConstantIntTy, class BasicBlockTy>
class CaseIteratorT {