[all-commits] [llvm/llvm-project] 8de2d0: [clang] Fix crash in bug52905
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Wed Dec 29 00:22:52 PST 2021
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2021-12-29 (Wed, 29 Dec 2021)
[clang] Fix crash in bug52905
The root cause for the crash is the incorrect use of `cast`.
The actual type and cast-to type is different. This patch fixes the
crash by converting the `cast` to `dyn_cast`.
More information about the All-commits