[llvm-commits] [llvm] r91276 - /llvm/trunk/lib/System/Host.cpp

Torok Edwin edwintorok at gmail.com
Mon Dec 14 04:38:19 PST 2009


Author: edwin
Date: Mon Dec 14 06:38:18 2009
New Revision: 91276

URL: http://llvm.org/viewvc/llvm-project?rev=91276&view=rev
Log:
Add "generic" fallback.

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.).

Modified:
    llvm/trunk/lib/System/Host.cpp

Modified: llvm/trunk/lib/System/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Host.cpp?rev=91276&r1=91275&r2=91276&view=diff

==============================================================================
--- llvm/trunk/lib/System/Host.cpp (original)
+++ llvm/trunk/lib/System/Host.cpp Mon Dec 14 06:38:18 2009
@@ -292,6 +292,7 @@
       return "generic";
     }
   }
+  return "generic";
 }
 #else
 std::string sys::getHostCPUName() {





More information about the llvm-commits mailing list