[PATCH] Refactor: Simplify boolean conditional return statements in lib/Target/XCore
Richard
legalize at xmission.com
Mon May 25 01:49:24 PDT 2015
Hi friedgold, rafael, sunfish, robertlytton, chandlerc, ddunbar, void, echristo,
Use clang-tidy to simplify boolean conditional return statements
http://reviews.llvm.org/D9988
Files:
lib/Target/XCore/XCoreISelLowering.cpp
Index: lib/Target/XCore/XCoreISelLowering.cpp
===================================================================
--- lib/Target/XCore/XCoreISelLowering.cpp
+++ lib/Target/XCore/XCoreISelLowering.cpp
@@ -1461,9 +1461,7 @@
CCState CCInfo(CallConv, isVarArg, MF, RVLocs, Context);
if (!CCInfo.CheckReturn(Outs, RetCC_XCore))
return false;
- if (CCInfo.getNextStackOffset() != 0 && isVarArg)
- return false;
- return true;
+ return !(CCInfo.getNextStackOffset() != 0 && isVarArg);
}
SDValue
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9988.26415.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150525/d49aaae4/attachment.bin>
More information about the llvm-commits
mailing list