r374659 - remove an useless allocation found by scan-build - the new Dead nested assignment check
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 12 08:24:00 PDT 2019
Author: sylvestre
Date: Sat Oct 12 08:24:00 2019
New Revision: 374659
URL: http://llvm.org/viewvc/llvm-project?rev=374659&view=rev
Log:
remove an useless allocation found by scan-build - the new Dead nested assignment check
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=374659&r1=374658&r2=374659&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Sat Oct 12 08:24:00 2019
@@ -4413,8 +4413,8 @@ Value *ScalarExprEmitter::VisitAsTypeExp
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) {
More information about the cfe-commits
mailing list