summaryrefslogtreecommitdiff
path: root/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
commit9a0b604d3382e01208a980eff63193f95324dc37 (patch)
treee44a90500815f6672e5c4de6751e464f49f94a9b /lib/Target/CBackend
parent8b10b69ba25920d7276e01fc8647661977c653c0 (diff)
downloadllvm-9a0b604d3382e01208a980eff63193f95324dc37.tar.gz
llvm-9a0b604d3382e01208a980eff63193f95324dc37.tar.bz2
llvm-9a0b604d3382e01208a980eff63193f95324dc37.tar.xz
use the right accessor for ConstantDataArray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 4b86ee4d31..8c83bc349a 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/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);
}