diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-21 15:41:56 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-21 15:41:56 +0000 |
| commit | 7950510b292c6b6be78606f989dcd7df5521c035 (patch) | |
| tree | 2884352734ba999b886d98c44297249c8a99805c /llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | |
| parent | 3fac9a4fc57c78249516534b6a6527f58be05c96 (diff) | |
| download | bcm5719-llvm-7950510b292c6b6be78606f989dcd7df5521c035.tar.gz bcm5719-llvm-7950510b292c6b6be78606f989dcd7df5521c035.zip | |
Fix a typo
llvm-svn: 79634
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index b020e433331..eb6048d50cb 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -737,7 +737,7 @@ bool X86DAGToDAGISel::MatchWrapper(SDValue N, X86ISelAddressMode &AM) { // Under X86-64 non-small code model, GV (and friends) are 64-bits, so // they cannot be folded into immediate fields. // FIXME: This can be improved for kernel and other models? - (M == CodeModel::Small || CodeModel::Kernel) && + (M == CodeModel::Small || M == CodeModel::Kernel) && // Base and index reg must be 0 in order to use %rip as base and lowering // must allow RIP. !AM.hasBaseOrIndexReg() && N.getOpcode() == X86ISD::WrapperRIP) { |

