mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Collapse logic and move and reword comment for clarity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf7644a27e
commit
78ac65f06b
@ -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