From a13fb621bbbdc07d24ffbe1e771d52ff2111e2b7 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sat, 10 Mar 2012 23:03:01 +0000 Subject: [PATCH] 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 --- include/llvm/Instructions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 13ed8c1f6ed..9f13e212529 100644 --- a/include/llvm/Instructions.h +++ b/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 { -- 2.34.1