summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2019-09-24 14:52:13 +0000
committerMichael Liao <michael.hliao@gmail.com>2019-09-24 14:52:13 +0000
commitca635d7d44fb87e8da283c88042792972f121b3c (patch)
tree40ef9229871547c1004eac7973b4f07578d5cbe9 /llvm/lib/TextAPI/MachO/TextStubCommon.cpp
parent5f738940b552fe22ca0850981c55279da8e7527d (diff)
downloadbcm5719-llvm-ca635d7d44fb87e8da283c88042792972f121b3c.tar.gz
bcm5719-llvm-ca635d7d44fb87e8da283c88042792972f121b3c.zip
[TextAPI] Remove redundant checking causing warnings. NFC.
- Minor coding format. llvm-svn: 372765
Diffstat (limited to 'llvm/lib/TextAPI/MachO/TextStubCommon.cpp')
-rw-r--r--llvm/lib/TextAPI/MachO/TextStubCommon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
index 806ca0324e1..cfd9ac8d0cf 100644
--- a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
+++ b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
@@ -45,11 +45,11 @@ void ScalarTraits<PlatformSet>::output(const PlatformSet &Values, void *IO,
raw_ostream &OS) {
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO);
- assert((!Ctx || Ctx && Ctx->FileKind != FileType::Invalid) &&
+ assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
"File type is not set in context");
- if ( Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) &&
- Values.count(PlatformKind::macCatalyst) ) {
+ if (Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) &&
+ Values.count(PlatformKind::macCatalyst)) {
OS << "zippered";
return;
}
@@ -80,7 +80,7 @@ void ScalarTraits<PlatformSet>::output(const PlatformSet &Values, void *IO,
StringRef ScalarTraits<PlatformSet>::input(StringRef Scalar, void *IO,
PlatformSet &Values) {
const auto *Ctx = reinterpret_cast<TextAPIContext *>(IO);
- assert((!Ctx || Ctx && Ctx->FileKind != FileType::Invalid) &&
+ assert((!Ctx || Ctx->FileKind != FileType::Invalid) &&
"File type is not set in context");
if (Scalar == "zippered") {
OpenPOWER on IntegriCloud