Index: clang/lib/Sema/SemaExpr.cpp =================================================================== --- clang/lib/Sema/SemaExpr.cpp +++ clang/lib/Sema/SemaExpr.cpp @@ -11111,8 +11111,8 @@ QualType LHSType = LHS.get()->getType().getUnqualifiedType(); QualType RHSType = RHS.get()->getType().getUnqualifiedType(); - const BuiltinType *LHSBuiltinTy = LHSType->getAs(); - const BuiltinType *RHSBuiltinTy = RHSType->getAs(); + const BuiltinType *LHSBuiltinTy = LHSType->castAs(); + const BuiltinType *RHSBuiltinTy = RHSType->castAs(); unsigned DiagID = diag::err_typecheck_invalid_operands; if ((OperationKind == ACK_Arithmetic) &&