[all-commits] [llvm/llvm-project] 943006: [clang][AST] Handle dependent representation of ca...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Wed Feb 12 23:18:59 PST 2025


  Branch: refs/heads/users/HighCommander4/issue-126720
  Home:   https://github.com/llvm/llvm-project
  Commit: 94300606f574b39a13d580aaf38b214293dfd502
      https://github.com/llvm/llvm-project/commit/94300606f574b39a13d580aaf38b214293dfd502
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M clang/lib/AST/Expr.cpp
    M clang/test/AST/ast-dump-cxx2b-deducing-this.cpp

  Log Message:
  -----------
  [clang][AST] Handle dependent representation of call to function with explicit object parameter in CallExpr::getBeginLoc()

This fixes a crash where CallExpr::getBeginLoc() tries to access the
first argument of a CallExpr representing a call to a function with
an explicit object parameter, assuming that a first argument exists
because it's the object argument.

This is the case for non-dependent calls, but for dependent calls
the object argument is part of the callee (the semantic analysis
that separates it out has not been performed yet) and so there may
not be a first argument.

Fixes https://github.com/llvm/llvm-project/issues/126720



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list