[all-commits] [llvm/llvm-project] 133b6d: [clang][C++20] Fix clang/clangd assert/crash after...
Dmitry Polukhin via All-commits
all-commits at lists.llvm.org
Sat Sep 17 07:54:17 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 133b6d7db90d9b52b01e8e09e1aa8fb8d2da0f9d
https://github.com/llvm/llvm-project/commit/133b6d7db90d9b52b01e8e09e1aa8fb8d2da0f9d
Author: Dmitry Polukhin <dmitry.polukhin at gmail.com>
Date: 2022-09-17 (Sat, 17 Sep 2022)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
A clang/test/SemaCXX/remove-nested-immediate-invocation-crash.cpp
Log Message:
-----------
[clang][C++20] Fix clang/clangd assert/crash after compilation errors
After compilation errors, expression a transformation result may not be usable.
It triggers an assert in RemoveNestedImmediateInvocation and SIGSEGV in case of
builds without asserts. This issue significantly affects clangd because source
may not be valid during typing. Tests cases that I attached was reduce from huge
C++ translation unit.
Test Plan: check-clang
Differential Revision: https://reviews.llvm.org/D133948
More information about the All-commits
mailing list