An overaggressive #ifdef allows a function to fall off the bottom of the
authorChris Lattner <sabre@nondot.org>
Wed, 12 Jul 2006 20:42:10 +0000 (20:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Jul 2006 20:42:10 +0000 (20:42 +0000)
function instead of returning a value.  This sometimes allowed the ppc32 jit
to be used in 64-bit mode.

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

lib/Target/PowerPC/PPCTargetMachine.cpp

index 6af925cdae0fc45325803af0258c7eeb7f56a332..0bc9e7e5b078e7ee3cfaa33dfd900da952bc50e6 100644 (file)
@@ -39,9 +39,8 @@ unsigned PPC32TargetMachine::getJITMatchQuality() {
 #if defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)
   if (sizeof(void*) == 4)
     return 10;
-#else
-  return 0;
 #endif
+  return 0;
 }
 unsigned PPC64TargetMachine::getJITMatchQuality() {
 #if defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)