Missed one instance of implicit pointer conversion.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 19 Sep 2011 20:14:46 +0000 (20:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 19 Sep 2011 20:14:46 +0000 (20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140044 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/MachODump.cpp

index 3085348605434f2d2266eb9e9e9b5e50764975b7..313e763b2bc1bd04b4aea8a149b7ece9b8ea9239 100644 (file)
@@ -353,7 +353,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
         FunctionMap[Sections[SectIdx].Offset] = &Functions.back();
 
         for (unsigned i = 0, e = Calls.size(); i != e; ++i)
-          FunctionMap.insert(std::pair<uint64_t, MCFunction*>(Calls[i], 0));
+          FunctionMap.insert(std::make_pair(Calls[i], (MCFunction*)0));
       }
       for (std::map<uint64_t, MCFunction*>::iterator mi = FunctionMap.begin(),
            me = FunctionMap.end(); mi != me; ++mi)