diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-31 03:16:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 03:16:39 +0000 |
commit | 3a565d624180b876aa9dba139c805184be9e0283 (patch) | |
tree | f247aa18633c197a340483d55e273ee447a15fb2 /llvm/lib/Target/CBackend | |
parent | 9c181f660c60e1af8b1fd6e8a31444d5874491fb (diff) | |
download | bcm5719-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.cpp | 2 |
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); } |