aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-15 04:07:32 +0000
committerChris Lattner <sabre@nondot.org>2004-02-15 04:07:32 +0000
commit04d1fb6df9799009c1ad7d7c5a6419d48c916ff7 (patch)
tree1364dc3e89f6f26d4ab22b328579d40187e2cc6a
parent371064481a9b15b1f73b7b021ec1c808c6fa5d1f (diff)
downloadexternal_llvm-04d1fb6df9799009c1ad7d7c5a6419d48c916ff7.zip
external_llvm-04d1fb6df9799009c1ad7d7c5a6419d48c916ff7.tar.gz
external_llvm-04d1fb6df9799009c1ad7d7c5a6419d48c916ff7.tar.bz2
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
-rw-r--r--lib/Transforms/Instrumentation/EmitFunctions.cpp2
-rw-r--r--lib/VMCore/Constants.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/EmitFunctions.cpp b/lib/Transforms/Instrumentation/EmitFunctions.cpp
index 0025d3e..c74f93c 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 280e005..06f23c1 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...