[llvm-commits] [llvm] r160192 - /llvm/trunk/include/llvm/ADT/PointerUnion.h
Galina Kistanova
gkistanova at gmail.com
Fri Jul 13 14:06:54 PDT 2012
Author: gkistanova
Date: Fri Jul 13 16:06:54 2012
New Revision: 160192
URL: http://llvm.org/viewvc/llvm-project?rev=160192&view=rev
Log:
Fixed few warnings.
Modified:
llvm/trunk/include/llvm/ADT/PointerUnion.h
Modified: llvm/trunk/include/llvm/ADT/PointerUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PointerUnion.h?rev=160192&r1=160191&r2=160192&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PointerUnion.h (original)
+++ llvm/trunk/include/llvm/ADT/PointerUnion.h Fri Jul 13 16:06:54 2012
@@ -54,8 +54,8 @@
static inline void *getAsVoidPointer(void *P) { return P; }
static inline void *getFromVoidPointer(void *P) { return P; }
enum {
- PT1BitsAv = PointerLikeTypeTraits<PT1>::NumLowBitsAvailable,
- PT2BitsAv = PointerLikeTypeTraits<PT2>::NumLowBitsAvailable,
+ PT1BitsAv = (int)(PointerLikeTypeTraits<PT1>::NumLowBitsAvailable),
+ PT2BitsAv = (int)(PointerLikeTypeTraits<PT2>::NumLowBitsAvailable),
NumLowBitsAvailable = PT1BitsAv < PT2BitsAv ? PT1BitsAv : PT2BitsAv
};
};
More information about the llvm-commits
mailing list