mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-11 20:52:31 +00:00
[IR/Verifier] Merge two ifs into one. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff889a6bac
commit
a2a5c796cb
@ -760,9 +760,7 @@ void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) {
|
|||||||
|
|
||||||
bool Verifier::isValidUUID(const MDNode &N, const Metadata *MD) {
|
bool Verifier::isValidUUID(const MDNode &N, const Metadata *MD) {
|
||||||
auto *S = dyn_cast<MDString>(MD);
|
auto *S = dyn_cast<MDString>(MD);
|
||||||
if (!S)
|
if (!S || S->getString().empty())
|
||||||
return false;
|
|
||||||
if (S->getString().empty())
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Keep track of names of types referenced via UUID so we can check that they
|
// Keep track of names of types referenced via UUID so we can check that they
|
||||||
|
Loading…
x
Reference in New Issue
Block a user