summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2019-10-12 15:24:00 +0000
committerSylvestre Ledru <sylvestre@debian.org>2019-10-12 15:24:00 +0000
commit4644e9a50a4fb2ad52ad6089f9e322f88ee23d6c (patch)
tree407774371a2e1d19f7a7b0bfdd53b58e8383d323 /clang/lib/CodeGen/CGExprScalar.cpp
parent9f0885d38d821080a7cf48b2507ae19fb3e70eb9 (diff)
downloadbcm5719-llvm-4644e9a50a4fb2ad52ad6089f9e322f88ee23d6c.tar.gz
bcm5719-llvm-4644e9a50a4fb2ad52ad6089f9e322f88ee23d6c.zip
remove an useless allocation found by scan-build - the new Dead nested assignment check
llvm-svn: 374659
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index c7f279d28e8..f3e03bec5ef 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -4413,8 +4413,8 @@ Value *ScalarExprEmitter::VisitAsTypeExpr(AsTypeExpr *E) {
return Src;
}
- return Src = createCastsForTypeOfSameSize(Builder, CGF.CGM.getDataLayout(),
- Src, DstTy, "astype");
+ return createCastsForTypeOfSameSize(Builder, CGF.CGM.getDataLayout(),
+ Src, DstTy, "astype");
}
Value *ScalarExprEmitter::VisitAtomicExpr(AtomicExpr *E) {
OpenPOWER on IntegriCloud