From 2d20cb2892e0b2c2953978813ee440e05f70573f Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Tue, 21 Oct 2014 21:50:49 +0000 Subject: [PATCH] Pacify bots and simplify r220321 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220335 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/Passes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 46f912e62d6..4762116a656 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -693,7 +693,7 @@ FunctionPass *TargetPassConfig::createRegAllocPass(bool Optimized) { /// Return true if the default global register allocator is in use and /// has not be overriden on the command line with '-regalloc=...' bool TargetPassConfig::usingDefaultRegAlloc() const { - return RegAlloc == &useDefaultRegisterAllocator; + return RegAlloc.getNumOccurrences() == 0; } /// Add the minimum set of target-independent passes that are required for -- 2.34.1