aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2012-03-10 23:03:01 +0000
committerAaron Ballman <aaron@aaronballman.com>2012-03-10 23:03:01 +0000
commita13fb621bbbdc07d24ffbe1e771d52ff2111e2b7 (patch)
treec8f7f2e4dbb73229b3aa9c4d39b710bb44a498ac
parent9130b42a85998238b7bbe25ed2989e0605f636f0 (diff)
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
-rw-r--r--include/llvm/Instructions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 13ed8c1f6e..9f13e21252 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<unsigned>(~0L-1);
template <class SwitchInstTy, class ConstantIntTy, class BasicBlockTy>
class CaseIteratorT {