Index: clang/lib/AST/ExprConstant.cpp =================================================================== --- clang/lib/AST/ExprConstant.cpp +++ clang/lib/AST/ExprConstant.cpp @@ -11291,7 +11291,7 @@ assert(!T->isDependentType() && "unexpected dependent type"); QualType CanTy = T.getCanonicalType(); - const BuiltinType *BT = dyn_cast(CanTy); + const BuiltinType *BT = cast(CanTy); switch (CanTy->getTypeClass()) { #define TYPE(ID, BASE)