[all-commits] [llvm/llvm-project] f5b542: [clang] Fix a crash on CheckArgAlignment.
Haojian Wu via All-commits
all-commits at lists.llvm.org
Wed May 19 04:30:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f5b5426433c9e6c24615ef1286d72c527b0b15dd
https://github.com/llvm/llvm-project/commit/f5b5426433c9e6c24615ef1286d72c527b0b15dd
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2021-05-19 (Wed, 19 May 2021)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/SemaCXX/typo-correction-crash.cpp
Log Message:
-----------
[clang] Fix a crash on CheckArgAlignment.
We might encounter an undeduced type before calling getTypeAlignInChars.
NOTE: this retrieves the fix from
8f80c66bd2982788a8eede4419684ca72f48b9a2, which was removed in Adam's
followup fix fbfcfdbf6828b8d36f4ec0ff5f4eac11fb1411a5. We originally
thought the crash was caused by recovery-ast, but it turns out it can
occur for other cases, e.g. typo-correction.
Differential Revision: https://reviews.llvm.org/D102750
More information about the All-commits
mailing list