From 778cf08746009f1815d0f0ed3f2234b6faff1957 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sat, 10 Mar 2012 23:03:01 +0000 Subject: Fixing a compile warning triggered in MSVC about constant truncation. llvm-svn: 152518 --- llvm/include/llvm/Instructions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm') diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 13ed8c1f6ed..9f13e212529 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -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(~0L-1); template class CaseIteratorT { -- cgit v1.2.3