summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2012-11-15 19:05:23 +0000
committerJakub Staszak <kubastaszak@gmail.com>2012-11-15 19:05:23 +0000
commiteaf77254d4d6dd8dfc461c3e6078f44da881291c (patch)
tree3394a8e173c163a5747029a4fe134f75b6320529 /lib/Target
parentc2aa0035a6c0bd69e4f46620a270451fe585f8cd (diff)
downloadllvm-eaf77254d4d6dd8dfc461c3e6078f44da881291c.tar.gz
llvm-eaf77254d4d6dd8dfc461c3e6078f44da881291c.tar.bz2
llvm-eaf77254d4d6dd8dfc461c3e6078f44da881291c.tar.xz
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index d4627c74cb..51bea7350a 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -297,7 +297,7 @@ bool X86FastISel::X86FastEmitStore(EVT VT, const Value *Val,
case MVT::i32: Opc = X86::MOV32mi; break;
case MVT::i64:
// Must be a 32-bit sign extended value.
- if ((int)CI->getSExtValue() == CI->getSExtValue())
+ if (isInt<32>(CI->getSExtValue()))
Opc = X86::MOV64mi32;
break;
}