aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-13 14:04:14 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-13 14:04:14 +0000
commit042fb3199f480cd8096d9c51ba1aceecd9af6f0e (patch)
tree5775de29dd8eeabbf48a7036ef61e589bec32aa9
parentb5024401648eb58e2a9150ce0f57a56ad87daeaf (diff)
downloadexternal_llvm-042fb3199f480cd8096d9c51ba1aceecd9af6f0e.zip
external_llvm-042fb3199f480cd8096d9c51ba1aceecd9af6f0e.tar.gz
external_llvm-042fb3199f480cd8096d9c51ba1aceecd9af6f0e.tar.bz2
Correct a comment - this is not a sign extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62166 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index 2a0b408..45df410 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -329,7 +329,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT(SDNode *N) {
if (TLI.isBigEndian())
std::swap(Lo, Hi);
- // Signed extend to the promoted type.
+ // Extend to the promoted type.
SDValue Odd = DAG.getNode(ISD::TRUNCATE, MVT::i1, OldIdx);
SDValue Res = DAG.getNode(ISD::SELECT, NewVT, Odd, Hi, Lo);
return DAG.getNode(ISD::ANY_EXTEND, TLI.getTypeToTransformTo(OldVT), Res);