diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-01-10 13:21:24 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-01-10 16:12:00 -0800 |
commit | f4df7f4701d80ce6a2f5674db50f87fbd2dad82f (patch) | |
tree | 569485e84c90d83a5de9ee99e6ac991974d606e2 /clang/lib/Sema | |
parent | ceb801612a678bdffe7e7bf163bd0eed9c9b73a2 (diff) | |
download | bcm5719-llvm-f4df7f4701d80ce6a2f5674db50f87fbd2dad82f.tar.gz bcm5719-llvm-f4df7f4701d80ce6a2f5674db50f87fbd2dad82f.zip |
Remove redundant implicit cast creation.
FindCompositePointerType has already cast the operands to the composite
type for us in the case where it succeeds.
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 6c1d3deab2a..51b1ebe0b17 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; } |