summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-12-23 21:56:28 +0000
committerDevang Patel <dpatel@apple.com>2008-12-23 21:56:28 +0000
commit3d188347a40e6a75983c42ab71c65a319bce9a48 (patch)
tree4cd37b95b94752bb9d56acb109ffa148664504e7 /llvm/lib/Target/X86/X86FastISel.cpp
parent70bd60d1d434cfb7228343ae17c8993b6c79d258 (diff)
downloadbcm5719-llvm-3d188347a40e6a75983c42ab71c65a319bce9a48.tar.gz
bcm5719-llvm-3d188347a40e6a75983c42ab71c65a319bce9a48.zip
Silence unused variable warnings.
llvm-svn: 61392
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index a81ecfeace1..3056e39c917 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -1220,6 +1220,7 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
bool Emitted = X86FastEmitExtend(ISD::SIGN_EXTEND, VA.getLocVT(),
Arg, ArgVT, Arg);
assert(Emitted && "Failed to emit a sext!"); Emitted=Emitted;
+ Emitted = true;
ArgVT = VA.getLocVT();
break;
}
@@ -1227,6 +1228,7 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
bool Emitted = X86FastEmitExtend(ISD::ZERO_EXTEND, VA.getLocVT(),
Arg, ArgVT, Arg);
assert(Emitted && "Failed to emit a zext!"); Emitted=Emitted;
+ Emitted = true;
ArgVT = VA.getLocVT();
break;
}
@@ -1251,6 +1253,7 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
bool Emitted = TII.copyRegToReg(*MBB, MBB->end(), VA.getLocReg(),
Arg, RC, RC);
assert(Emitted && "Failed to emit a copy instruction!"); Emitted=Emitted;
+ Emitted = true;
RegArgs.push_back(VA.getLocReg());
} else {
unsigned LocMemOffset = VA.getLocMemOffset();
@@ -1278,6 +1281,7 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
unsigned Base = getInstrInfo()->getGlobalBaseReg(&MF);
bool Emitted = TII.copyRegToReg(*MBB, MBB->end(), X86::EBX, Base, RC, RC);
assert(Emitted && "Failed to emit a copy instruction!"); Emitted=Emitted;
+ Emitted = true;
}
// Issue the call.
@@ -1329,6 +1333,7 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
bool Emitted = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
RVLocs[0].getLocReg(), DstRC, SrcRC);
assert(Emitted && "Failed to emit a copy instruction!"); Emitted=Emitted;
+ Emitted = true;
if (CopyVT != RVLocs[0].getValVT()) {
// Round the F80 the right size, which also moves to the appropriate xmm
// register. This is accomplished by storing the F80 value in memory and
OpenPOWER on IntegriCloud