git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2013-08-28 20:45:45 +00:00
parent 02ae44f31c
commit b5011bd269

View File

@ -652,7 +652,7 @@ MDString *DICompositeType::getIdentifier() const {
#ifndef NDEBUG #ifndef NDEBUG
static void VerifySubsetOf(const MDNode *LHS, const MDNode *RHS) { static void VerifySubsetOf(const MDNode *LHS, const MDNode *RHS) {
for (unsigned i = 0; i != LHS->getNumOperands(); ++i) { for (unsigned i = 0; i != LHS->getNumOperands(); ++i) {
// Skip the 'empty' list (that's a single i32 0, rather than truly empty) // Skip the 'empty' list (that's a single i32 0, rather than truly empty).
if (i == 0 && isa<ConstantInt>(LHS->getOperand(i))) if (i == 0 && isa<ConstantInt>(LHS->getOperand(i)))
continue; continue;
const MDNode *E = cast<MDNode>(LHS->getOperand(i)); const MDNode *E = cast<MDNode>(LHS->getOperand(i));
@ -672,7 +672,7 @@ void DICompositeType::setTypeArray(DIArray Elements, DIArray TParams) {
TrackingVH<MDNode> N(*this); TrackingVH<MDNode> N(*this);
if (Elements) { if (Elements) {
#ifndef NDEBUG #ifndef NDEBUG
// Check that the new list of members contains all the old members as well // Check that the new list of members contains all the old members as well.
if (const MDNode *El = cast_or_null<MDNode>(N->getOperand(10))) if (const MDNode *El = cast_or_null<MDNode>(N->getOperand(10)))
VerifySubsetOf(El, Elements); VerifySubsetOf(El, Elements);
#endif #endif