Add "generic" fallback.
authorTorok Edwin <edwintorok@gmail.com>
Mon, 14 Dec 2009 12:38:18 +0000 (12:38 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 14 Dec 2009 12:38:18 +0000 (12:38 +0000)
gcc warned that the function may not have a return value, indeed
for non-intel and non-amd X86 CPUs it is right (VIA, etc.).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91276 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Host.cpp

index 3196a63b850cc32b59104a2a7e3b901f168ca7fe..79897e48bdaab5c11c4a4f531d9f1c42ff41cba4 100644 (file)
@@ -292,6 +292,7 @@ std::string sys::getHostCPUName() {
       return "generic";
     }
   }
+  return "generic";
 }
 #else
 std::string sys::getHostCPUName() {