forked from OSchip/llvm-project
[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:
parent
abbe9c561d
commit
7ee332c4af
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue