Improve diagnostics for multiple function decls with IR type mismatch

This commit is contained in:
Martin Kinkelin 2018-08-18 20:41:41 +02:00
parent 6da0a6cd8a
commit 9fe95daeea
3 changed files with 9 additions and 1 deletions

View file

@ -1740,7 +1740,7 @@ llvm::Constant *buildStringLiteralConstant(StringExp *se, bool zeroTerm) {
return LLConstantArray::get(at, vals);
}
static std::string llvmTypeToString(llvm::Type *type) {
std::string llvmTypeToString(llvm::Type *type) {
std::string result;
llvm::raw_string_ostream stream(result);
stream << *type;