summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTypes.cpp
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
commitef6de3da8572607f786303c07150daa6e140ab19 (patch)
tree1a988de7e4a765ba4b0ede16cceb797720a5e58e /lib/CodeGen/CodeGenTypes.cpp
parentcdb8076dd9cfb975a1bcb3e7cb58a59648c35af0 (diff)
downloadclang-ef6de3da8572607f786303c07150daa6e140ab19.tar.gz
clang-ef6de3da8572607f786303c07150daa6e140ab19.tar.bz2
clang-ef6de3da8572607f786303c07150daa6e140ab19.tar.xz
De-constify Types in StructType::get() and TargetData::getIntPtrType().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r--lib/CodeGen/CodeGenTypes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp
index 967cd709c8..84b9fba5fd 100644
--- a/lib/CodeGen/CodeGenTypes.cpp
+++ b/lib/CodeGen/CodeGenTypes.cpp
@@ -279,8 +279,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
break;
}
case Type::Complex: {
- const llvm::Type *EltTy =
- ConvertType(cast<ComplexType>(Ty)->getElementType());
+ llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType());
ResultType = llvm::StructType::get(EltTy, EltTy, NULL);
break;
}