forked from OSchip/llvm-project
Fixing a compile error that recently started happening for me in MSVC 2013. CFGTerminator has an explicit conversion to bool operator that we can make use of instead of using == 0.
llvm-svn: 198175
This commit is contained in:
parent
aca443c02c
commit
2ef6a435f4
|
@ -242,7 +242,7 @@ bool UnreachableCodeChecker::isInvalidPath(const CFGBlock *CB,
|
|||
bool UnreachableCodeChecker::isEmptyCFGBlock(const CFGBlock *CB) {
|
||||
return CB->getLabel() == 0 // No labels
|
||||
&& CB->size() == 0 // No statements
|
||||
&& CB->getTerminator() == 0; // No terminator
|
||||
&& !CB->getTerminator(); // No terminator
|
||||
}
|
||||
|
||||
void ento::registerUnreachableCodeChecker(CheckerManager &mgr) {
|
||||
|
|
Loading…
Reference in New Issue