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:
parent
57ac2aa13c
commit
15e66ae534
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user