diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 23:25:21 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 23:25:21 +0000 |
commit | a9f0a8d32563e7f87dab56c5b371dcf618dc7f29 (patch) | |
tree | 98c70104b3253d28a59df9b017edd830bffe8abc /llvm/lib/IR | |
parent | 4c2b0781a5748620adc5529cd986f3f2a7d32b80 (diff) | |
download | bcm5719-llvm-a9f0a8d32563e7f87dab56c5b371dcf618dc7f29.tar.gz bcm5719-llvm-a9f0a8d32563e7f87dab56c5b371dcf618dc7f29.zip |
IR: Add missing null operand to MDSubroutineType
Add missing `nullptr` from `MDSubroutineType`'s operands for
`MDCompositeTypeBase::getIdentifier()` (and add tests for all the other
unused fields). This highlights just how crazy it is that
`MDSubroutineType` inherits from `MDCompositeTypeBase`.
llvm-svn: 229926
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/DebugInfoMetadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp index ab79a713357..a2f5d55c3c6 100644 --- a/llvm/lib/IR/DebugInfoMetadata.cpp +++ b/llvm/lib/IR/DebugInfoMetadata.cpp @@ -200,7 +200,7 @@ MDSubroutineType *MDSubroutineType::getImpl(LLVMContext &Context, bool ShouldCreate) { DEFINE_GETIMPL_LOOKUP(MDSubroutineType, (Flags, TypeArray)); Metadata *Ops[] = {nullptr, nullptr, nullptr, nullptr, - TypeArray, nullptr, nullptr}; + TypeArray, nullptr, nullptr, nullptr}; DEFINE_GETIMPL_STORE(MDSubroutineType, (Flags), Ops); } |