Pacify bots and simplify r220321

llvm-svn: 220335
This commit is contained in:
Arnaud A. de Grandmaison 2014-10-21 21:50:49 +00:00
parent 7661970d2f
commit 5c7fe7e97b
1 changed files with 1 additions and 1 deletions

View File

@ -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