diff options
author | Matthias Braun <matze@braunis.de> | 2018-10-31 00:23:23 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-10-31 00:23:23 +0000 |
commit | 9fd397b423ba442808957e65e3ad25a07cd203e4 (patch) | |
tree | 7145d100b0a62cf322449093f203eb7c9e80c3b8 /llvm/lib/IR/DebugInfo.cpp | |
parent | ac0ba8c52493012daabb73512a5739394c37a2dc (diff) | |
download | bcm5719-llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.tar.gz bcm5719-llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.zip |
ADT/STLExtras: Introduce llvm::empty; NFC
This is modeled after C++17 std::empty().
Differential Revision: https://reviews.llvm.org/D53909
llvm-svn: 345679
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index e5fb765f778..02b7953cb5b 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -280,7 +280,7 @@ bool DebugInfoFinder::addScope(DIScope *Scope) { } static MDNode *stripDebugLocFromLoopID(MDNode *N) { - assert(N->op_begin() != N->op_end() && "Missing self reference?"); + assert(!empty(N->operands()) && "Missing self reference?"); // if there is no debug location, we do not have to rewrite this MDNode. if (std::none_of(N->op_begin() + 1, N->op_end(), [](const MDOperand &Op) { |