diff --git a/include/llvm/MC/MCFixup.h b/include/llvm/MC/MCFixup.h index fdd8140a273..6763c054c05 100644 --- a/include/llvm/MC/MCFixup.h +++ b/include/llvm/MC/MCFixup.h @@ -77,9 +77,9 @@ public: FI.OpIndex = OpIndex; FI.Kind = unsigned(Kind); - assert(Offset == FI.Offset && "Offset out of range!"); - assert(OpIndex == FI.OpIndex && "Operand index out of range!"); - assert(Kind == FI.Kind && "Kind out of range!"); + assert(Offset == FI.getOffset() && "Offset out of range!"); + assert(OpIndex == FI.getOpIndex() && "Operand index out of range!"); + assert(Kind == FI.getKind() && "Kind out of range!"); return FI; }