summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-06-07 03:13:46 +0000
committerManman Ren <mren@apple.com>2013-06-07 03:13:46 +0000
commit60711600daa7d005f526f90cc164813a5a90ac19 (patch)
tree227afea236e958c5c0ce59c037430afc3d5482a2 /llvm/lib/IR
parentc3d2ebb60f6048cf99a5c30ce77b9ec9118b635b (diff)
downloadbcm5719-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/lib/IR')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
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.
OpenPOWER on IntegriCloud