summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-02-03 23:08:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-02-03 23:08:54 +0000
commit2c7a2684f2159c55c42a0c333049547fb56cdb58 (patch)
tree5399ee3170429112b7545dcaeed2f490dead50ff /llvm
parentd5ab971b547bb26513421ceb5b4ecea2bfe579d1 (diff)
downloadbcm5719-llvm-2c7a2684f2159c55c42a0c333049547fb56cdb58.tar.gz
bcm5719-llvm-2c7a2684f2159c55c42a0c333049547fb56cdb58.zip
DIBuilder: simplify array generation to produce true zero-length arrays
For some anachronistic reason we were producing {i32 0} for zero-length debug info arrays. (this change is paired with a Clang change and may cause temporary buildbot noise) Let's not. llvm-svn: 200721
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index c7e75849005..fc80ba9e64a 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -902,10 +902,6 @@ DIBuilder::createForwardDecl(unsigned Tag, StringRef Name, DIDescriptor Scope,
/// getOrCreateArray - Get a DIArray, create one if required.
DIArray DIBuilder::getOrCreateArray(ArrayRef<Value *> Elements) {
- if (Elements.empty()) {
- Value *Null = Constant::getNullValue(Type::getInt32Ty(VMContext));
- return DIArray(MDNode::get(VMContext, Null));
- }
return DIArray(MDNode::get(VMContext, Elements));
}
OpenPOWER on IntegriCloud