From c45f29204094c25b9c44285da672dbc06a0619f0 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. llvm-svn: 152518 --- 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 {