Remove dependence on return type of ConstantStruct::get
authorChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 04:07:32 +0000 (04:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 04:07:32 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11466 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/EmitFunctions.cpp
lib/VMCore/Constants.cpp

index 0025d3e2b601aca3350da25fbd4e51ca6fc12167..c74f93c94b8d17b577374f095dd3fa04007e7611 100644 (file)
@@ -82,7 +82,7 @@ bool EmitFunctionTable::run(Module &M){
     }
   
   StructType *sttype = StructType::get(vType);
-  ConstantStruct *cstruct = ConstantStruct::get(sttype, vConsts);
+  Constant *cstruct = ConstantStruct::get(sttype, vConsts);
 
   GlobalVariable *gb = new GlobalVariable(cstruct->getType(), true,
                                           GlobalValue::ExternalLinkage, 
index 280e00520e5f9e7c96b0af3d93ff87574f00d27f..06f23c165ecf5083e6dab7532beb094e78b44134 100644 (file)
@@ -459,7 +459,7 @@ void ConstantStruct::replaceUsesOfWithOnConstant(Value *From, Value *To,
     Values.push_back(Val);
   }
   
-  ConstantStruct *Replacement = ConstantStruct::get(getType(), Values);
+  Constant *Replacement = ConstantStruct::get(getType(), Values);
   assert(Replacement != this && "I didn't contain From!");
 
   // Everyone using this now uses the replacement...