summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit778cf08746009f1815d0f0ed3f2234b6faff1957 (patch)
treee00c2154a74cd9d7926118cf38f9156e5a124d70 /llvm
parentcfa95f66a1e063fbd5762eb2b3ba402e2220c27e (diff)
downloadbcm5719-llvm-778cf08746009f1815d0f0ed3f2234b6faff1957.tar.gz
bcm5719-llvm-778cf08746009f1815d0f0ed3f2234b6faff1957.zip
Fixing a compile warning triggered in MSVC about constant truncation.
llvm-svn: 152518
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Instructions.h3
1 files changed, 2 insertions, 1 deletions
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<unsigned>(~0L-1);
template <class SwitchInstTy, class ConstantIntTy, class BasicBlockTy>
class CaseIteratorT {
OpenPOWER on IntegriCloud