llvm::Optional<uint64_t> byte_size = m_type.GetByteSize(exe_scope);
if (!byte_size) {
- err.SetErrorString("can't get size of type");
+ err.SetErrorStringWithFormat("can't get size of type \"%s\"",
+ m_type.GetTypeName().AsCString());
return;
}
llvm::Optional<size_t> opt_bit_align = m_type.GetTypeBitAlign(exe_scope);
if (!opt_bit_align) {
- err.SetErrorString("can't get the type alignment");
+ err.SetErrorStringWithFormat("can't get the alignment of type \"%s\"",
+ m_type.GetTypeName().AsCString());
return;
}