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 | 9a0b604d3382e01208a980eff63193f95324dc37 (patch) | |
tree | e44a90500815f6672e5c4de6751e464f49f94a9b /lib | |
parent | 8b10b69ba25920d7276e01fc8647661977c653c0 (diff) | |
download | external_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.cpp | 2 |
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); } |