[clang] f4df7f4 - Remove redundant implicit cast creation.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 10 16:12:24 PST 2020
Author: Richard Smith
Date: 2020-01-10T16:12:00-08:00
New Revision: f4df7f4701d80ce6a2f5674db50f87fbd2dad82f
URL: https://github.com/llvm/llvm-project/commit/f4df7f4701d80ce6a2f5674db50f87fbd2dad82f
DIFF: https://github.com/llvm/llvm-project/commit/f4df7f4701d80ce6a2f5674db50f87fbd2dad82f.diff
LOG: Remove redundant implicit cast creation.
FindCompositePointerType has already cast the operands to the composite
type for us in the case where it succeeds.
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 6c1d3deab2a3..51b1ebe0b17f 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;
}
More information about the cfe-commits
mailing list