diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-06-29 17:12:06 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-06-29 17:12:06 +0000 |
commit | 97d218aaad2b15f81ea8c0aa82957997b68b34e7 (patch) | |
tree | a07a48348b404c047dcfb1292efadd264cc2d363 /include/llvm/ADT | |
parent | 7f4cb8522d024a11885ad2056fbefb287cc36654 (diff) | |
download | external_llvm-97d218aaad2b15f81ea8c0aa82957997b68b34e7.zip external_llvm-97d218aaad2b15f81ea8c0aa82957997b68b34e7.tar.gz external_llvm-97d218aaad2b15f81ea8c0aa82957997b68b34e7.tar.bz2 |
Fix three MSVC 2008 warnings that completely clutter the build output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/PointerUnion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h index b3baec1..1b36aee 100644 --- a/include/llvm/ADT/PointerUnion.h +++ b/include/llvm/ADT/PointerUnion.h @@ -89,7 +89,7 @@ namespace llvm { int is() const { int TyNo = ::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0); assert(TyNo != -1 && "Type query could never succeed on PointerUnion!"); - return Val.getInt() == TyNo; + return static_cast<int>(Val.getInt()) == TyNo; } /// get<T>() - Return the value of the specified pointer type. If the |