aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
parent8b10b69ba25920d7276e01fc8647661977c653c0 (diff)
downloadexternal_llvm-9a0b604d3382e01208a980eff63193f95324dc37.zip
external_llvm-9a0b604d3382e01208a980eff63193f95324dc37.tar.gz
external_llvm-9a0b604d3382e01208a980eff63193f95324dc37.tar.bz2
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')
-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 4b86ee4..8c83bc3 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);
}