Use !! to convert to a boolean value.

llvm-svn: 196505
This commit is contained in:
Rui Ueyama 2013-12-05 13:11:33 +00:00
parent 16c025e212
commit d2014f196b
1 changed files with 1 additions and 5 deletions

View File

@ -230,11 +230,7 @@ public:
return ArrayRef<uint8_t>(p, p + array.size());
}
virtual bool hasInputGraph() {
if (_inputGraph)
return true;
return false;
}
virtual bool hasInputGraph() { return !!_inputGraph; }
void setLibraryGroup(Group *group) { _libraryGroup = group; }
Group *getLibraryGroup() const { return _libraryGroup; }