diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 17:45:07 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 17:45:07 +0000 |
commit | 7a7e280448706d8b143377d65d69f7c4ecc8caa5 (patch) | |
tree | 959df48c43aabcde7b7b463f6b02a34bdde90e9e /llvm/lib/IR/Verifier.cpp | |
parent | 398069064dc90cddafc1f51c513d73ee7806beac (diff) | |
download | bcm5719-llvm-7a7e280448706d8b143377d65d69f7c4ecc8caa5.tar.gz bcm5719-llvm-7a7e280448706d8b143377d65d69f7c4ecc8caa5.zip |
Metadata: Add typed array-like wrapper for MDTuple
Add `MDTupleTypedArrayWrapper`, a wrapper around `MDTuple` that adapts
it to look like an array and cast its operands to the given type. This
is designed to be a replacement for `DITypedArray<>`, which is in the
`DIDescriptor` hierarchy.
llvm-svn: 234183
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 480c2e5581e..385e3302e1d 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -3401,8 +3401,8 @@ void Verifier::verifyTypeRefs() { // Visit all the compile units again to check the type references. for (auto *CU : CUs->operands()) - if (auto *Ts = cast<MDCompileUnit>(CU)->getRetainedTypes()) - for (auto &Op : Ts->operands()) + if (auto Ts = cast<MDCompileUnit>(CU)->getRetainedTypes()) + for (MDType *Op : Ts) if (auto *T = dyn_cast<MDCompositeType>(Op)) TypeRefs.erase(T->getRawIdentifier()); if (TypeRefs.empty()) |