diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 181f8e68c61..a00b19edc96 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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; }