This patch uses cast instead of dyn_cast which will assert if the type doesn't match.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang/lib/AST/ExprConstant.cpp | ||
---|---|---|
11292–11293 | I don't think this is right. BT is only dereferenced in the event that CanTy's type class is "Builtin". We COULD introduce a scope around the Type::Builtin type and move this there, but this will now assert any time that CanTy is a Pointer, auto, etc. |
I don't think this is right. BT is only dereferenced in the event that CanTy's type class is "Builtin". We COULD introduce a scope around the Type::Builtin type and move this there, but this will now assert any time that CanTy is a Pointer, auto, etc.