[llvm-commits] [llvm] r152518 - /llvm/trunk/include/llvm/Instructions.h
Aaron Ballman
aaron at aaronballman.com
Sat Mar 10 15:03:02 PST 2012
Author: aaronballman
Date: Sat Mar 10 17:03:01 2012
New Revision: 152518
URL: http://llvm.org/viewvc/llvm-project?rev=152518&view=rev
Log:
Fixing a compile warning triggered in MSVC about constant truncation.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=152518&r1=152517&r2=152518&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Sat Mar 10 17:03:01 2012
@@ -2468,7 +2468,8 @@
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 {
More information about the llvm-commits
mailing list