Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 2aa66af

Browse files
committed
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
1 parent 8910a54 commit 2aa66af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CodeGen/TargetInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9438,7 +9438,7 @@ bool RISCVABIInfo::detectFPCCEligibleStruct(QualType Ty, llvm::Type *&Field1Ty,
94389438
Ty, CharUnits::Zero(), Field1Ty, Field1Off, Field2Ty, Field2Off);
94399439
// Not really a candidate if we have a single int but no float.
94409440
if (Field1Ty && !Field2Ty && !Field1Ty->isFloatingPointTy())
9441-
return IsCandidate = false;
9441+
return false;
94429442
if (!IsCandidate)
94439443
return false;
94449444
if (Field1Ty && Field1Ty->isFloatingPointTy())

0 commit comments

Comments
 (0)