[flang] Use x.empty() instead of llvm::empty(x) (NFC)

I'm planning to deprecate and eventually remove llvm::empty.

Note that no use of llvm::empty requires the ability of llvm::empty to
determine the emptiness from begin/end only.
This commit is contained in:
Kazu Hirata 2022-09-18 11:10:11 -07:00
parent abbe9c561d
commit 7ee332c4af
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void checkCharCompare2(
auto cmpOp = mlir::dyn_cast<mlir::arith::CmpIOp>(res.getDefiningOp());
checkCallOp(cmpOp.getLhs().getDefiningOp(), fctName, 4, /*addLocArgs=*/false);
auto allocas = res.getParentBlock()->getOps<fir::AllocaOp>();
EXPECT_TRUE(llvm::empty(allocas));
EXPECT_TRUE(allocas.empty());
}
TEST_F(RuntimeCallTest, genCharCompare2Test) {