Shut up a warning about signed/unsigned.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 11 Jan 2007 07:58:19 +0000 (07:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 11 Jan 2007 07:58:19 +0000 (07:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33071 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 181f8e68c6166252b861e21902922cf6812c5aae..a00b19edc96e3ca83a331a36d0d150bd6c0b535d 100644 (file)
@@ -1495,7 +1495,7 @@ int SlotMachine::getGlobalSlot(const GlobalValue *V) {
   
   // Lookup the value in the module plane's map.
   ValueMap::const_iterator MVI = MI->second.map.find(V);
-  return MVI != MI->second.map.end() ? MVI->second : -1;
+  return MVI != MI->second.map.end() ? int(MVI->second) : -1;
 }