Try to make MSVC 2010 happy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-09-19 20:08:52 +00:00
parent 061c3c4506
commit 4d90638130

View File

@ -271,7 +271,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
uint64_t VMAddr = Sections[SectIdx].Address - Sections[SectIdx].Offset;
for (unsigned i = 0, e = FoundFns.size(); i != e; ++i)
FunctionMap.insert(std::pair<uint64_t,MCFunction*>(FoundFns[i]+VMAddr,0));
FunctionMap.insert(std::make_pair(FoundFns[i]+VMAddr, (MCFunction*)0));
StringRef Bytes = MachOObj->getData(Sections[SectIdx].Offset,
Sections[SectIdx].Size);
@ -335,7 +335,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
FunctionMap[Start] = &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));
}
}