Simplify code
authorChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 21:00:22 +0000 (21:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 21:00:22 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 7f2b14d32779d1ee03f1568392b3da1bada5b2bb..a62207514150334776258ae08a6c09d87a94954c 100644 (file)
@@ -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<OpaqueType>(Ty)) {
     std::map<const Type *, std::string>::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()) {
index 7f2b14d32779d1ee03f1568392b3da1bada5b2bb..a62207514150334776258ae08a6c09d87a94954c 100644 (file)
@@ -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<OpaqueType>(Ty)) {
     std::map<const Type *, std::string>::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()) {