Skip to content

Commit

Permalink
use the right accessor for ConstantDataArray.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149342 91177308-0d34-0410-b5e6-96231b3b80d8
lattner committed Jan 31, 2012
1 parent 8b10b69 commit 9a0b604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/CBackend/CBackend.cpp
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 9a0b604

Please sign in to comment.