Fix a few warnings caught by clang.

llvm-svn: 283607
This commit is contained in:
Zachary Turner 2016-10-07 21:32:16 +00:00
parent b18fd9654f
commit 563d7e8a39
2 changed files with 2 additions and 2 deletions

View File

@ -4081,7 +4081,7 @@ bool DWARFASTParserClang::CopyUniqueClassMethodTypes(
if (log)
log->Printf("warning: need to create artificial method for 0x%8.8x for "
"method '%s'",
dst_die.GetOffset(), dst_name_artificial);
dst_die.GetOffset(), dst_name_artificial.str().c_str());
failures.Append(dst_die);
}

View File

@ -58,7 +58,7 @@ void NameToDIE::Dump(Stream *s) {
llvm::StringRef cstr = m_map.GetCStringAtIndex(i);
const DIERef &die_ref = m_map.GetValueAtIndexUnchecked(i);
s->Printf("%p: {0x%8.8x/0x%8.8x} \"%s\"\n", (const void *)cstr.data(),
die_ref.cu_offset, die_ref.die_offset, cstr);
die_ref.cu_offset, die_ref.die_offset, cstr.str().c_str());
}
}