From: Chris Lattner Date: Sun, 15 Feb 2004 04:07:32 +0000 (+0000) Subject: Remove dependence on return type of ConstantStruct::get X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=04d1fb6df9799009c1ad7d7c5a6419d48c916ff7;p=oota-llvm.git Remove dependence on return type of ConstantStruct::get git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11466 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/EmitFunctions.cpp b/lib/Transforms/Instrumentation/EmitFunctions.cpp index 0025d3e2b60..c74f93c94b8 100644 --- a/lib/Transforms/Instrumentation/EmitFunctions.cpp +++ b/lib/Transforms/Instrumentation/EmitFunctions.cpp @@ -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, diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 280e00520e5..06f23c165ec 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -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...