aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-24 07:09:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-24 07:09:49 +0000
commit24ac408ce891321d1a5d62beaf3487efce6f2b22 (patch)
tree85f3ad2754aa543930e554925a6411529a3b0a7e /lib/CodeGen/SelectionDAG/FastISel.cpp
parentd21c6ef9d00650c39f6fe10031f105753446c155 (diff)
Eliminate some unused variable compile time warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index b45a4fd536..037a46d382 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -401,6 +401,7 @@ bool FastISel::SelectCall(User *I) {
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
Reg, RC, RC);
assert(InsertedCopy && "Can't copy address registers!");
+ InsertedCopy = InsertedCopy;
UpdateValueMap(I, ResultReg);
return true;
}
@@ -434,6 +435,7 @@ bool FastISel::SelectCall(User *I) {
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
Reg, RC, RC);
assert(InsertedCopy && "Can't copy address registers!");
+ InsertedCopy = InsertedCopy;
UpdateValueMap(I, ResultReg);
} else {
unsigned ResultReg =