1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Collapse logic and move and reword comment for clarity.

llvm-svn: 187013
This commit is contained in:
Eric Christopher 2013-07-24 00:54:39 +00:00
parent 57ac2aa13c
commit 15e66ae534

View File

@ -417,10 +417,12 @@ bool DIType::isUnsignedDIType() {
bool DICompileUnit::Verify() const {
if (!isCompileUnit())
return false;
StringRef N = getFilename();
if (N.empty())
// Don't bother verifying the compilation directory or producer string
// as those could be empty.
if (getFilename().empty())
return false;
// It is possible that directory and produce string is empty.
return DbgNode->getNumOperands() == 13;
}