[cfe-commits] r146448 - /cfe/trunk/lib/Driver/Tools.cpp

Nick Lewycky nicholas at mxc.ca
Mon Dec 12 15:36:08 PST 2011


Author: nicholas
Date: Mon Dec 12 17:36:07 2011
New Revision: 146448

URL: http://llvm.org/viewvc/llvm-project?rev=146448&view=rev
Log:
Fix "control may reach end of non-void function" warning.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=146448&r1=146447&r2=146448&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Dec 12 17:36:07 2011
@@ -990,8 +990,7 @@
         assert(0 && "Unknown -m argument.");
     }
   }
-  else
-    return "hexagonv2";
+  return "hexagonv2";
 }
 
 void Clang::AddHexagonTargetArgs(const ArgList &Args,





More information about the cfe-commits mailing list