From: Davide Italiano Date: Wed, 9 Mar 2016 21:09:51 +0000 (+0000) Subject: [modules] Simplify code logic. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1b74142a274b9a4eca5251ecd6f3bba0c1ee6d1;p=clang [modules] Simplify code logic. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263060 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index e119c0535e..3d1a40db5e 100644 --- a/lib/Basic/Module.cpp +++ b/lib/Basic/Module.cpp @@ -418,12 +418,8 @@ void Module::print(raw_ostream &OS, unsigned Indent) const { OS.indent(Indent + 2); OS << "export "; printModuleId(OS, UnresolvedExports[I].Id); - if (UnresolvedExports[I].Wildcard) { - if (UnresolvedExports[I].Id.empty()) - OS << "*"; - else - OS << ".*"; - } + if (UnresolvedExports[I].Wildcard) + OS << (UnresolvedExports[I].Id.empty() ? "*" : ".*"); OS << "\n"; }