[Lldb-commits] [PATCH] D40537: Simplify UUID::IsValid()
Zachary Turner via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 27 18:46:40 PST 2017
zturner added a comment.
You could use llvm's range adapters to make this slightly better.
auto Bytes = makeArrayRef(m_uuid, m_num_uuid_bytes);
return llvm::find(Bytes, 0) != Bytes.end();
Another option would just be `return *this != UUID(m_num_uuid_bytes);`
https://reviews.llvm.org/D40537
More information about the lldb-commits
mailing list