diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-12 20:42:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-12 20:42:10 +0000 |
commit | 3d6721a4a1cf9e9a27d05b268f86b7a9ce663d6f (patch) | |
tree | 51b070cb1c89f76e28f7748b73967bc26fdbe0a6 | |
parent | ed393433d2fd0d680ac5c18ad78e6ebe9afda034 (diff) | |
download | external_llvm-3d6721a4a1cf9e9a27d05b268f86b7a9ce663d6f.zip external_llvm-3d6721a4a1cf9e9a27d05b268f86b7a9ce663d6f.tar.gz external_llvm-3d6721a4a1cf9e9a27d05b268f86b7a9ce663d6f.tar.bz2 |
An overaggressive #ifdef allows a function to fall off the bottom of the
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
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 6af925c..0bc9e7e 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -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) |