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/CodeGen/GlobalISel/RegBankSelect.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/CodeGen/GlobalISel/RegBankSelect.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp index 9e2d48d1dc4..6bb48dc2e8a 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp @@ -140,7 +140,7 @@ bool RegBankSelect::repairReg( return false; assert(ValMapping.NumBreakDowns == 1 && "Not yet implemented"); // An empty range of new register means no repairing. - assert(NewVRegs.begin() != NewVRegs.end() && "We should not have to repair"); + assert(!empty(NewVRegs) && "We should not have to repair"); // Assume we are repairing a use and thus, the original reg will be // the source of the repairing. |