summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 03:16:39 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 03:16:39 +0000
commit3a565d624180b876aa9dba139c805184be9e0283 (patch)
treef247aa18633c197a340483d55e273ee447a15fb2 /llvm/lib/Target/CBackend
parent9c181f660c60e1af8b1fd6e8a31444d5874491fb (diff)
downloadbcm5719-llvm-3a565d624180b876aa9dba139c805184be9e0283.tar.gz
bcm5719-llvm-3a565d624180b876aa9dba139c805184be9e0283.zip
use the right accessor for ConstantDataArray.
llvm-svn: 149342
Diffstat (limited to 'llvm/lib/Target/CBackend')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 4b86ee4d316..8c83bc349a8 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -680,7 +680,7 @@ void CWriter::printConstantDataSequential(ConstantDataSequential *CDS,
} else {
Out << "{ ";
printConstant(CDS->getElementAsConstant(0), Static);
- for (unsigned i = 1, e = CDS->getNumOperands(); i != e; ++i) {
+ for (unsigned i = 1, e = CDS->getNumElements(); i != e; ++i) {
Out << ", ";
printConstant(CDS->getElementAsConstant(i), Static);
}
OpenPOWER on IntegriCloud