[IR/Verifier] Merge two ifs into one. NFC.
authorDavide Italiano <davide@freebsd.org>
Thu, 7 Apr 2016 15:55:28 +0000 (15:55 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 7 Apr 2016 15:55:28 +0000 (15:55 +0000)
llvm-svn: 265688

llvm/lib/IR/Verifier.cpp

index 24e92e1..fc9cc7d 100644 (file)
@@ -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