Assert we've found the size of each (non-overlapping) structure. NFCI.

Fixes clang static analyzer warning.
This commit is contained in:
Simon Pilgrim 2020-09-14 15:37:47 +01:00
parent 71a16e40f7
commit 3b7708e2de
1 changed files with 1 additions and 0 deletions

View File

@ -7692,6 +7692,7 @@ private:
break;
}
}
assert(Size && "Failed to determine structure size");
CombinedInfo.BasePointers.push_back(BP.getPointer());
CombinedInfo.Pointers.push_back(LB.getPointer());
CombinedInfo.Sizes.push_back(CGF.Builder.CreateIntCast(