r203266 - Remove dead return and simplify code.
Ted Kremenek
kremenek at apple.com
Fri Mar 7 10:53:06 PST 2014
Author: kremenek
Date: Fri Mar 7 12:53:05 2014
New Revision: 203266
URL: http://llvm.org/viewvc/llvm-project?rev=203266&view=rev
Log:
Remove dead return and simplify code.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=203266&r1=203265&r2=203266&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Fri Mar 7 12:53:05 2014
@@ -790,10 +790,8 @@ class CGObjCGNUstep : public CGObjCGNU {
if (copy) return SetPropertyAtomicCopy;
return SetPropertyAtomic;
}
- if (copy) return SetPropertyNonAtomicCopy;
- return SetPropertyNonAtomic;
- return 0;
+ return copy ? SetPropertyNonAtomicCopy : SetPropertyNonAtomic;
}
};
More information about the cfe-commits
mailing list