summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-11 09:56:20 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-11 09:56:20 +0000
commiteeb64ae6e52ac2a7980884fe89c01508014af6a9 (patch)
treed642ebabea7be19546d56ed183345831207df879 /unittests
parentce3a9f51ce1b11143e94394906299c7640cf31b7 (diff)
De-constify Types in StructType::get() and TargetData::getIntPtrType().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/TypeBuilderTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Support/TypeBuilderTest.cpp b/unittests/Support/TypeBuilderTest.cpp
index 52b51b38757..06091784cf0 100644
--- a/unittests/Support/TypeBuilderTest.cpp
+++ b/unittests/Support/TypeBuilderTest.cpp
@@ -187,7 +187,7 @@ public:
static const StructType *get(LLVMContext &Context) {
// Using the static result variable ensures that the type is
// only looked up once.
- std::vector<const Type*> st;
+ std::vector<Type*> st;
st.push_back(TypeBuilder<int, cross>::get(Context));
st.push_back(TypeBuilder<int*, cross>::get(Context));
st.push_back(TypeBuilder<void*[], cross>::get(Context));
@@ -210,7 +210,7 @@ public:
static const StructType *get(LLVMContext &Context) {
// Using the static result variable ensures that the type is
// only looked up once.
- std::vector<const Type*> st;
+ std::vector<Type*> st;
st.push_back(TypeBuilder<types::i<32>, cross>::get(Context));
st.push_back(TypeBuilder<types::i<32>*, cross>::get(Context));
st.push_back(TypeBuilder<types::i<8>*[], cross>::get(Context));