1
0
mirror of https://github.com/RPCSX/llvm.git synced 2025-04-04 09:11:43 +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:
Davide Italiano 2016-04-07 15:55:28 +00:00
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) {
auto *S = dyn_cast<MDString>(MD);
if (!S)
return false;
if (S->getString().empty())
if (!S || S->getString().empty())
return false;
// Keep track of names of types referenced via UUID so we can check that they