projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9130b42
)
Fixing a compile warning triggered in MSVC about constant truncation.
author
Aaron Ballman
<aaron@aaronballman.com>
Sat, 10 Mar 2012 23:03:01 +0000
(23:03 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Sat, 10 Mar 2012 23:03:01 +0000
(23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152518
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instructions.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instructions.h
b/include/llvm/Instructions.h
index 13ed8c1f6ed393663b4e2722f7c781228dce0660..9f13e2125292eb499c09d74be5e476ed74a1e6a3 100644
(file)
--- 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 {