summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-22 22:20:49 +0000
committerChris Lattner <sabre@nondot.org>2006-03-22 22:20:49 +0000
commitb893d04a67f8a5083ca2916ab1505e3e302ded08 (patch)
treedeab309fe1967d7c691643c2322d4c018379f2b1 /llvm/lib
parent021bb7c956d64f17dc59e3ce6a8e791f0e633b62 (diff)
downloadbcm5719-llvm-b893d04a67f8a5083ca2916ab1505e3e302ded08.tar.gz
bcm5719-llvm-b893d04a67f8a5083ca2916ab1505e3e302ded08.zip
Fix a typo
llvm-svn: 26965
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 184e2156c77..80c842de5e9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -788,7 +788,7 @@ void SelectionDAGLowering::visitCast(User &I) {
setValue(&I, DAG.getNode(ISD::SIGN_EXTEND, DestVT, N));
else
setValue(&I, DAG.getNode(ISD::ZERO_EXTEND, DestVT, N));
- } else if (isFloatingPoint(SrcVT)) { // Int -> FP cast
+ } else if (isFloatingPoint(DestVT)) { // Int -> FP cast
if (I.getOperand(0)->getType()->isSigned())
setValue(&I, DAG.getNode(ISD::SINT_TO_FP, DestVT, N));
else
OpenPOWER on IntegriCloud