Index: src/IceInstX86BaseImpl.h |
diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h |
index 3de3296038adeea34be2247e7ef90ef3623fd6fc..b9ebf516534332b0711088013ee51d7514949d94 100644 |
--- a/src/IceInstX86BaseImpl.h |
+++ b/src/IceInstX86BaseImpl.h |
@@ -368,13 +368,13 @@ InstImpl<TraitsType>::InstX86Xchg::InstX86Xchg(Cfg *Func, Operand *Dest, |
template <typename TraitsType> |
InstImpl<TraitsType>::InstX86IacaStart::InstX86IacaStart(Cfg *Func) |
: InstX86Base(Func, InstX86Base::IacaStart, 0, nullptr) { |
- assert(Func->getContext()->getFlags().getAllowIacaMarks()); |
+ assert(getFlags().getAllowIacaMarks()); |
} |
template <typename TraitsType> |
InstImpl<TraitsType>::InstX86IacaEnd::InstX86IacaEnd(Cfg *Func) |
: InstX86Base(Func, InstX86Base::IacaEnd, 0, nullptr) { |
- assert(Func->getContext()->getFlags().getAllowIacaMarks()); |
+ assert(getFlags().getAllowIacaMarks()); |
} |
// ======================== Dump routines ======================== // |