[all-commits] [llvm/llvm-project] 031738: [AST][RecoveryExpr] Don't preserve the return type...

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Aug 11 04:50:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 031738a5611843674d5f739e739e8a386d5e741b
      https://github.com/llvm/llvm-project/commit/031738a5611843674d5f739e739e8a386d5e741b
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/SemaCXX/recovery-expr-type.cpp

  Log Message:
  -----------
  [AST][RecoveryExpr] Don't preserve the return type if the FunctionDecl is invalid.

If a functionDecl is invalid (e.g. return type cannot be formed), int is
use as he fallback type, which may lead to some bogus diagnostics.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D85714




More information about the All-commits mailing list