mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 00:56:05 +00:00

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