The MCSymbol data should always be present for non-absolute sections so assert that it is to silence static analysis warnings.
uint32_t Offset = Target.getConstant();
if (IsPCRel)
Offset += 1 << Log2Size;
+
// Try to record the scattered relocation if needed. Fall back to non
// scattered if necessary (see comments in recordScatteredRelocation()
// for details).
// find a case where they are actually emitted.
Type = MachO::GENERIC_RELOC_VANILLA;
} else {
+ assert(A && "Unknown symbol data");
+
// Resolve constant variables.
if (A->isVariable()) {
int64_t Res;