diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2019-10-12 15:24:00 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2019-10-12 15:24:00 +0000 |
commit | b96f4ed98396fcd5e5e74efe93746c2200599ddf (patch) | |
tree | 9c23664d213dfc665eb3937b5cea7bea479f7489 | |
parent | 958f2757806f0ca7324c9909f3270f0b4409a2e5 (diff) | |
download | clang-b96f4ed98396fcd5e5e74efe93746c2200599ddf.tar.gz |
remove an useless allocation found by scan-build - the new Dead nested assignment check
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374659 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index c7f279d28e..f3e03bec5e 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/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) { |