Unverified Commit a3d8b783 authored by Yingwei Zheng's avatar Yingwei Zheng Committed by GitHub
Browse files

[Clang][CodeGen] Mark `__dynamic_cast` as `willreturn` (#80409)

According to the C++ standard, `dynamic_cast` of pointers either returns
a pointer (7.6.1.7) or results in undefined behavior (11.9.5). This
patch marks `__dynamic_cast` as `willreturn` to remove unused calls.

Fixes #77606.
parent f2cf8da6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment