diff options
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 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(); } } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index bc3829f67c..c54af08e84 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.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(); } } |