[all-commits] [llvm/llvm-project] 2bb50a: [clang] Fix time profile in "isIntegerConstantExpr"

Evgeny Shulgin via All-commits all-commits at lists.llvm.org
Sun Oct 23 16:18:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bb50a55b0f5a88bd432ad2691060d82748b5bc0
      https://github.com/llvm/llvm-project/commit/2bb50a55b0f5a88bd432ad2691060d82748b5bc0
  Author: Evgeny Shulgin <izaronplatz at gmail.com>
  Date:   2022-10-23 (Sun, 23 Oct 2022)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/unittests/Support/TimeProfilerTest.cpp

  Log Message:
  -----------
  [clang] Fix time profile in "isIntegerConstantExpr"

The time profiler in `Expr::isIntegerConstantExpr` used to
call `Loc->printToString`, it was inconsistent with other time
profiles in the file and caused segfaults if `Loc` was `nullptr`.

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

Reviewed By: dyung, jloser

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




More information about the All-commits mailing list