From f4df7f4701d80ce6a2f5674db50f87fbd2dad82f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 10 Jan 2020 13:21:24 -0800 Subject: [PATCH] Remove redundant implicit cast creation. FindCompositePointerType has already cast the operands to the composite type for us in the case where it succeeds. --- clang/lib/Sema/SemaExpr.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 6c1d3de..51b1ebe 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -10180,8 +10180,6 @@ static bool convertPointersToCompositeType(Sema &S, SourceLocation Loc, return true; } - LHS = S.ImpCastExprToType(LHS.get(), T, CK_BitCast); - RHS = S.ImpCastExprToType(RHS.get(), T, CK_BitCast); return false; } -- 2.7.4