* The parent of a constant pool is a symtabvalue, not a value.
llvm-svn: 181
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index 2be490d..32ea040 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -97,7 +97,7 @@
delete CPool; // End bytecode block section!
if (!isMethod) // The ModuleInfoBlock follows directly after the c-pool
- outputModuleInfoBlock(CP.getParent()->castModuleAsserting());
+ outputModuleInfoBlock(CP.getParentV()->castModuleAsserting());
return false;
}