* The parent of a constant pool is a symtabvalue, not a value.
authorChris Lattner <sabre@nondot.org>
Sat, 14 Jul 2001 06:10:49 +0000 (06:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 Jul 2001 06:10:49 +0000 (06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/Writer.cpp

index 2be490dbed1646526d61f880415bc0286b080f25..32ea04009cdb4ff2ae7579dfb73154913226c215 100644 (file)
@@ -97,7 +97,7 @@ bool BytecodeWriter::processConstPool(const ConstantPool &CP, bool isMethod) {
   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;
 }