diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-01 19:58:59 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-01 19:58:59 +0000 |
commit | aeaf245db33fa8bccdd14bb8899ee0585a75a7b1 (patch) | |
tree | 70ec1634716f9e2aaf9cd9d43011ba86a64cd639 /lib/VMCore/AsmWriter.cpp | |
parent | e7aa7baa76e1e65323ffe25593bb9cb3b4fa343c (diff) |
Make some implicit conversions explicit, to avoid compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 6c7b68b41d..5d765a4c65 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -385,7 +385,7 @@ int SlotTracker::getGlobalSlot(const GlobalValue *V) { // Find the type plane in the module map ValueMap::iterator MI = mMap.find(V); - return MI == mMap.end() ? -1 : MI->second; + return MI == mMap.end() ? -1 : (int)MI->second; } @@ -397,7 +397,7 @@ int SlotTracker::getLocalSlot(const Value *V) { initialize(); ValueMap::iterator FI = fMap.find(V); - return FI == fMap.end() ? -1 : FI->second; + return FI == fMap.end() ? -1 : (int)FI->second; } |