Skip to content

Commit 744a605

Browse files
authored
Add some output information
1 parent 0668832 commit 744a605

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4368,6 +4368,8 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S,
43684368

43694369
Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
43704370
Diag(OldLocation, PrevDiag) << Old << Old->getType();
4371+
llvm::errs() << "NewType: " << New->getType().getAsString() << "\n";
4372+
llvm::errs() << "OldType: " << Old->getType().getAsString() << "\n";
43714373
return true;
43724374
}
43734375

0 commit comments

Comments
 (0)