r374032 - Remove an useless allocation (from by clang-analyzer/scan-build)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 02:17:46 PDT 2019


Author: sylvestre
Date: Tue Oct  8 02:17:46 2019
New Revision: 374032

URL: http://llvm.org/viewvc/llvm-project?rev=374032&view=rev
Log:
Remove an useless allocation (from by clang-analyzer/scan-build)
https://llvm.org/reports/scan-build/report-TargetInfo.cpp-detectFPCCEligibleStruct-9-1.html#EndPath


Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=374032&r1=374031&r2=374032&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Oct  8 02:17:46 2019
@@ -9438,7 +9438,7 @@ bool RISCVABIInfo::detectFPCCEligibleStr
       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())




More information about the cfe-commits mailing list