diff options
author | Manman Ren <mren@apple.com> | 2013-06-07 03:13:46 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2013-06-07 03:13:46 +0000 |
commit | 37bfb18f8f0557611fbdf238abe200813f07d298 (patch) | |
tree | 92a7a50d966da2fd8ca506e89c4b4b3b0708ddbd /lib/IR/DIBuilder.cpp | |
parent | c6752d5565d77e1824eb08cfc2bd53b5f6229fdb (diff) | |
download | external_llvm-37bfb18f8f0557611fbdf238abe200813f07d298.zip external_llvm-37bfb18f8f0557611fbdf238abe200813f07d298.tar.gz external_llvm-37bfb18f8f0557611fbdf238abe200813f07d298.tar.bz2 |
DIBuilder: No functionality change.
Use the correct DIType when creating vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r-- | lib/IR/DIBuilder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 8edc6a0..2abf71b 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -712,8 +712,8 @@ DICompositeType DIBuilder::createArrayType(uint64_t Size, uint64_t AlignInBits, } /// createVectorType - Create debugging information entry for a vector. -DIType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits, - DIType Ty, DIArray Subscripts) { +DICompositeType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits, + DIType Ty, DIArray Subscripts) { // A vector is an array type with the FlagVector flag applied. Value *Elts[] = { @@ -731,7 +731,7 @@ DIType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits, ConstantInt::get(Type::getInt32Ty(VMContext), 0), Constant::getNullValue(Type::getInt32Ty(VMContext)) }; - return DIType(MDNode::get(VMContext, Elts)); + return DICompositeType(MDNode::get(VMContext, Elts)); } /// createArtificialType - Create a new DIType with "artificial" flag set. |