summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.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
commit71049f78edb8bff7854e8cefebd13d2afc3dd262 (patch)
tree494bf60b3f43d14b1e652e21cfb0d0a75d9c28fd /llvm/lib/Target/ARM/ARMFastISel.cpp
parent504d3f51ff3139f621692112656c8b3ec411b1a7 (diff)
downloadbcm5719-llvm-71049f78edb8bff7854e8cefebd13d2afc3dd262.tar.gz
bcm5719-llvm-71049f78edb8bff7854e8cefebd13d2afc3dd262.zip
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. llvm-svn: 118245
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index cf4d61e55d2..5f7ad8ce611 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -1567,7 +1567,7 @@ bool ARMFastISel::SelectRet(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;
// Make the copy.
OpenPOWER on IntegriCloud