diff options
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-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 bc3829f67c..c54af08e84 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -925,7 +925,7 @@ void CWriter::printIndexingExpression(Value *Ptr, User::op_iterator I, printType(cast<PointerType>(Ptr->getType())->getElementType()); Out << ")]"; } else { - Out << ".field" << cast<ConstantSInt>(*I)->getValue(); + Out << ".field" << cast<ConstantUInt>(*I)->getValue(); } } |