diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 7f2b14d3277..a6220751415 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -182,9 +182,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty, // Check to see if the type is named. if (!IgnoreName || isa(Ty)) { std::map::iterator I = TypeNames.find(Ty); - if (I != TypeNames.end()) { - return Out << I->second << " " << NameSoFar; - } + if (I != TypeNames.end()) return Out << I->second << " " << NameSoFar; } switch (Ty->getPrimitiveID()) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 7f2b14d3277..a6220751415 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -182,9 +182,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty, // Check to see if the type is named. if (!IgnoreName || isa(Ty)) { std::map::iterator I = TypeNames.find(Ty); - if (I != TypeNames.end()) { - return Out << I->second << " " << NameSoFar; - } + if (I != TypeNames.end()) return Out << I->second << " " << NameSoFar; } switch (Ty->getPrimitiveID()) {