Skip to content
Snippets Groups Projects
Commit aa5066bc authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Fixing a compile error that recently started happening for me in MSVC 2013....

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198175 91177308-0d34-0410-b5e6-96231b3b80d8
parent ad1e7dd3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment