[llvm] r265688 - [IR/Verifier] Merge two ifs into one. NFC.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 08:55:28 PDT 2016
Author: davide
Date: Thu Apr 7 10:55:28 2016
New Revision: 265688
URL: http://llvm.org/viewvc/llvm-project?rev=265688&view=rev
Log:
[IR/Verifier] Merge two ifs into one. NFC.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=265688&r1=265687&r2=265688&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Thu Apr 7 10:55:28 2016
@@ -760,9 +760,7 @@ void Verifier::visitMetadataAsValue(cons
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
More information about the llvm-commits
mailing list