[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 12 15:35:01 PDT 2002
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.41 -> 1.42
---
Log message:
Fix a bug introduced by the Getelementptr change
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.41 llvm/lib/CWriter/Writer.cpp:1.42
--- llvm/lib/CWriter/Writer.cpp:1.41 Tue Sep 10 20:18:27 2002
+++ llvm/lib/CWriter/Writer.cpp Thu Sep 12 15:34:47 2002
@@ -925,7 +925,7 @@
printType(cast<PointerType>(Ptr->getType())->getElementType());
Out << ")]";
} else {
- Out << ".field" << cast<ConstantSInt>(*I)->getValue();
+ Out << ".field" << cast<ConstantUInt>(*I)->getValue();
}
}
More information about the llvm-commits
mailing list