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 | 60711600daa7d005f526f90cc164813a5a90ac19 (patch) | |
| tree | 227afea236e958c5c0ce59c037430afc3d5482a2 /llvm | |
| parent | c3d2ebb60f6048cf99a5c30ce77b9ec9118b635b (diff) | |
| download | bcm5719-llvm-60711600daa7d005f526f90cc164813a5a90ac19.tar.gz bcm5719-llvm-60711600daa7d005f526f90cc164813a5a90ac19.zip | |
DIBuilder: No functionality change.
Use the correct DIType when creating vector types.
llvm-svn: 183484
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/DIBuilder.h | 4 | ||||
| -rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/DIBuilder.h b/llvm/include/llvm/DIBuilder.h index 9352f674874..f988569fc77 100644 --- a/llvm/include/llvm/DIBuilder.h +++ b/llvm/include/llvm/DIBuilder.h @@ -349,8 +349,8 @@ namespace llvm { /// @param AlignInBits Alignment. /// @param Ty Element type. /// @param Subscripts Subscripts. - DIType createVectorType(uint64_t Size, uint64_t AlignInBits, - DIType Ty, DIArray Subscripts); + DICompositeType createVectorType(uint64_t Size, uint64_t AlignInBits, + DIType Ty, DIArray Subscripts); /// createEnumerationType - Create debugging information entry for an /// enumeration. diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 8edc6a0f10c..2abf71b84ec 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/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. |

