aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegAllocBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBase.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocBase.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp
index b9599e7..69b9291 100644
--- a/llvm/lib/CodeGen/RegAllocBase.cpp
+++ b/llvm/lib/CodeGen/RegAllocBase.cpp
@@ -216,10 +216,9 @@ MCPhysReg RegAllocBase::getErrorAssignment(const TargetRegisterClass &RC,
// Avoid printing the error for every single instance of the register. It
// would be better if this were per register class.
- bool EmitError = !MF.getProperties().hasProperty(
- MachineFunctionProperties::Property::FailedRegAlloc);
+ bool EmitError = !MF.getProperties().hasFailedRegAlloc();
if (EmitError)
- MF.getProperties().set(MachineFunctionProperties::Property::FailedRegAlloc);
+ MF.getProperties().setFailedRegAlloc();
const Function &Fn = MF.getFunction();
LLVMContext &Context = Fn.getContext();