[NFC][CLANG] Fix issue with dereference null return value in EvaluateBuiltinClassifyT...
authorManna, Soumi <soumi.manna@intel.com>
Mon, 29 May 2023 03:08:54 +0000 (20:08 -0700)
committerManna, Soumi <soumi.manna@intel.com>
Mon, 29 May 2023 03:09:09 +0000 (20:09 -0700)
commitb6a5aeadb5588dedc09eacc3b98b0278d6d53529
tree122a8d8b388019416ddd620cfa9f8dc47e4f50b9
parentfbb241c5523c07842af6cbe7a3a5a1c6513f1302
[NFC][CLANG] Fix issue with dereference null return value in EvaluateBuiltinClassifyType()

This patch uses cast instead of dyn_cast which will assert if the type doesn't match.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D151469
clang/lib/AST/ExprConstant.cpp