aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-04 10:49:57 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-04 10:49:57 +0000
commit1e96bab329eb23e4ce8a0dc3cc6b33a3f03d15bf (patch)
treead253e434c4d9d97e2a1db6e3c5c73876cd212e7 /lib/Target/X86/X86FastISel.cpp
parent416941d50fec5ebdc4ae3b113a0db1320c3b2a87 (diff)
In the calling convention logic, ValVT is always a legal type,
and as such can be represented by an MVT - the more complicated EVT is not needed. Use MVT for ValVT everywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-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 75f02177bf..b938539a7f 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -711,7 +711,7 @@ bool X86FastISel::X86SelectRet(const Instruction *I) {
return false;
// TODO: For now, don't try to handle cases where getLocInfo()
// says Full but the types don't match.
- if (VA.getValVT() != TLI.getValueType(RV->getType()))
+ if (TLI.getValueType(RV->getType()) != VA.getValVT())
return false;
// The calling-convention tables for x87 returns don't tell