aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/InstSelectSimple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Sparc/InstSelectSimple.cpp')
-rw-r--r--lib/Target/Sparc/InstSelectSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Sparc/InstSelectSimple.cpp b/lib/Target/Sparc/InstSelectSimple.cpp
index 9127682d08..398198ff00 100644
--- a/lib/Target/Sparc/InstSelectSimple.cpp
+++ b/lib/Target/Sparc/InstSelectSimple.cpp
@@ -452,10 +452,10 @@ void V8ISel::visitCallInst(CallInst &I) {
.addReg (ArgReg);
}
- unsigned DestReg = getReg (I);
BuildMI (BB, V8::CALL, 1).addPCDisp (I.getOperand (0));
- if (I.getType ()->getPrimitiveID () == Type::VoidTyID)
+ if (I.getType () == Type::VoidTy)
return;
+ unsigned DestReg = getReg (I);
// Deal w/ return value
switch (getClass (I.getType ())) {
case cByte: