[all-commits] [llvm/llvm-project] 94d36f: Fix a crash on invalid with _Generic expressions
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed May 4 09:42:15 PDT 2022
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-05-04 (Wed, 04 May 2022)
Fix a crash on invalid with _Generic expressions
We were failing to check if the controlling expression is dependent or
not when testing whether it has side effects. This would trigger an
assertion. Instead, if the controlling expression is dependent, we
suppress the check and diagnostic.
This fixes Issue 50227.
More information about the All-commits