[all-commits] [llvm/llvm-project] 6e5199: [clang][AST] Handle overload callee type in CallEx...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Mon Apr 12 00:33:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e5199104914c2415092315388ed09fbd9d629f7
      https://github.com/llvm/llvm-project/commit/6e5199104914c2415092315388ed09fbd9d629f7
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M clang/lib/AST/Expr.cpp
    M clang/unittests/Tooling/SourceCodeTest.cpp

  Log Message:
  -----------
  [clang][AST] Handle overload callee type in CallExpr::getCallReturnType.

The function did not handle every case. In some cases this
caused assertion failure.
After the fix the function returns DependentTy if the exact
return type can not be determined.

It seems that clang itself does not call the function in the
affected cases but some checker or other code may call it.

Reviewed By: hokein

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




More information about the All-commits mailing list