summaryrefslogtreecommitdiff
path: root/lib/Target/MSIL/MSILWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-28 05:14:34 +0000
committerChris Lattner <sabre@nondot.org>2009-10-28 05:14:34 +0000
commit0eeb913aa17a68b1f2963b02ca1d68f09dba0b78 (patch)
tree59af809ede34a9dd1b0bd71d65537f2787b08ebe /lib/Target/MSIL/MSILWriter.cpp
parent46b3abc9f759ed4bbf88be611cc577b21a8ffa8b (diff)
downloadllvm-0eeb913aa17a68b1f2963b02ca1d68f09dba0b78.tar.gz
llvm-0eeb913aa17a68b1f2963b02ca1d68f09dba0b78.tar.bz2
llvm-0eeb913aa17a68b1f2963b02ca1d68f09dba0b78.tar.xz
Previously, all operands to Constant were themselves constant.
In the new world order, BlockAddress can have a BasicBlock operand. This doesn't permute much, because if you have a ConstantExpr (or anything more specific than Constant) we still know the operand has to be a Constant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSIL/MSILWriter.cpp')
-rw-r--r--lib/Target/MSIL/MSILWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSIL/MSILWriter.cpp b/lib/Target/MSIL/MSILWriter.cpp
index f12ee78ccb..949b91020f 100644
--- a/lib/Target/MSIL/MSILWriter.cpp
+++ b/lib/Target/MSIL/MSILWriter.cpp
@@ -1529,7 +1529,7 @@ void MSILWriter::printStaticConstant(const Constant* C, uint64_t& Offset) {
case Type::StructTyID:
for (unsigned I = 0, E = C->getNumOperands(); I<E; I++) {
if (I!=0) Out << ",\n";
- printStaticConstant(C->getOperand(I),Offset);
+ printStaticConstant(cast<Constant>(C->getOperand(I)), Offset);
}
break;
case Type::PointerTyID: