[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
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8de2d06251c30751bdc0fd7b89133610797759e6
https://github.com/llvm/llvm-project/commit/8de2d06251c30751bdc0fd7b89133610797759e6
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2021-12-29 (Wed, 29 Dec 2021)
Changed paths:
M clang/lib/Sema/SemaOverload.cpp
M clang/test/SemaTemplate/constraints.cpp
Log Message:
-----------
[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
mailing list