diff options
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp index fb18f5a..60deb62 100644 --- a/llvm/lib/CodeGen/RegAllocBase.cpp +++ b/llvm/lib/CodeGen/RegAllocBase.cpp @@ -130,7 +130,7 @@ void RegAllocBase::allocatePhysRegs() { MI->emitError("inline assembly requires more registers than available"); } else if (MI) { LLVMContext &Context = - MI->getParent()->getParent()->getMMI().getModule()->getContext(); + MI->getParent()->getParent()->getFunction().getContext(); Context.emitError("ran out of registers during register allocation"); } else { report_fatal_error("ran out of registers during register allocation"); |