summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-07 18:53:05 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-07 18:53:05 +0000
commit090a273b55fc25d99422c68e9a32bacd02cc5f92 (patch)
tree0fb2943eb98ff7ded85df8f4eae7352b4d200c9a /clang/lib/CodeGen/CGObjCGNU.cpp
parent0b0147169489c36d04ef3506b9f280ec7a25e485 (diff)
downloadbcm5719-llvm-090a273b55fc25d99422c68e9a32bacd02cc5f92.tar.gz
bcm5719-llvm-090a273b55fc25d99422c68e9a32bacd02cc5f92.zip
Remove dead return and simplify code.
llvm-svn: 203266
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index a78f9538f73..fc899112903 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -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;
}
};
OpenPOWER on IntegriCloud