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 | 1ec5e73b328afbd57b5c954159251e876cd9ab71 (patch) | |
| tree | 5dc900596aad3a39101eae0f98c40fc34e786206 /llvm/lib/Target/PowerPC | |
| parent | 23bd480cea9c84767ea36f6aa79d654ffb3972f0 (diff) | |
| download | bcm5719-llvm-1ec5e73b328afbd57b5c954159251e876cd9ab71.tar.gz bcm5719-llvm-1ec5e73b328afbd57b5c954159251e876cd9ab71.zip | |
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.
llvm-svn: 29123
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 6af925cdae0..0bc9e7e5b07 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/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) |

