Fix ASTContext::typesAreCompatible to allow for int/enum compatibility (C99 6.7.2.2p4).
Fix Sema::MergeFunctionDecl to allow for function type compatibility (by using the predicate on ASTContext). Function types don't have to be identical to be compatible...

llvm-svn: 45784
3 files changed
tree: 9a9f8771440939ad697abf93d9372c65a88fa521
  1. clang/
  2. llvm/