commit | fb190c82983589eedfde7d1424c350eeb3d00050 | [log] [tgz] |
---|---|---|
author | Sylvestre Ledru <sylvestre@debian.org> | Tue Oct 08 09:17:46 2019 +0000 |
committer | Sylvestre Ledru <sylvestre@debian.org> | Tue Oct 08 09:17:46 2019 +0000 |
tree | 26a65f0cc0bff153b38967c1a5371508ed81a038 | |
parent | 4919534ae4d4029982d5a5ad7ea18f4a681cb602 [diff] [blame] |
Remove an useless allocation (from by clang-analyzer/scan-build) https://llvm.org/reports/scan-build/report-TargetInfo.cpp-detectFPCCEligibleStruct-9-1.html#EndPath llvm-svn: 374032
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index b281db3..c2c7b8b 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -9438,7 +9438,7 @@ Ty, CharUnits::Zero(), Field1Ty, Field1Off, Field2Ty, Field2Off); // Not really a candidate if we have a single int but no float. if (Field1Ty && !Field2Ty && !Field1Ty->isFloatingPointTy()) - return IsCandidate = false; + return false; if (!IsCandidate) return false; if (Field1Ty && Field1Ty->isFloatingPointTy())