diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2019-10-08 09:17:46 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2019-10-08 09:17:46 +0000 |
commit | 2aa66afa8285acc694fe643e294f7d25cad5a542 (patch) | |
tree | c956277078717da32d3a1772cd605394187f1f71 /lib | |
parent | 8910a5422cbc941bfb7c7af7cf8a2da3025c51c4 (diff) | |
download | clang-2aa66afa8285acc694fe643e294f7d25cad5a542.tar.gz |
Remove an useless allocation (from by clang-analyzer/scan-build)
https://llvm.org/reports/scan-build/report-TargetInfo.cpp-detectFPCCEligibleStruct-9-1.html#EndPath
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index b281db3321..c2c7b8bf65 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -9438,7 +9438,7 @@ bool RISCVABIInfo::detectFPCCEligibleStruct(QualType Ty, llvm::Type *&Field1Ty, 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()) |