Index: src/IceInstX8664.cpp |
diff --git a/src/IceInstX8664.cpp b/src/IceInstX8664.cpp |
index ec2d140613fb6b5d5a8372d87f9ddaa9a8c2ccdf..0915bc840d9a7f5d63843b949a6062d1d595bde0 100644 |
--- a/src/IceInstX8664.cpp |
+++ b/src/IceInstX8664.cpp |
@@ -134,7 +134,7 @@ void TargetX8664Traits::X86OperandMem::emit(const Cfg *Func) const { |
// TODO(sehr): ConstantRelocatable still needs updating for |
// rematerializable base/index and Disp. |
assert(Disp == 0); |
- const bool UseNonsfi = Func->getContext()->getFlags().getUseNonsfi(); |
+ const bool UseNonsfi = getFlags().getUseNonsfi(); |
CR->emitWithoutPrefix(Target, UseNonsfi ? "@GOTOFF" : ""); |
assert(!UseNonsfi); |
if (Base == nullptr && Index == nullptr) { |