Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit a2a5c79

Browse files
committed
[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
1 parent ff889a6 commit a2a5c79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IR/Verifier.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,7 @@ void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) {
760760

761761
bool Verifier::isValidUUID(const MDNode &N, const Metadata *MD) {
762762
auto *S = dyn_cast<MDString>(MD);
763-
if (!S)
764-
return false;
765-
if (S->getString().empty())
763+
if (!S || S->getString().empty())
766764
return false;
767765

768766
// Keep track of names of types referenced via UUID so we can check that they

0 commit comments

Comments
 (0)