Skip to content

Commit 6dc35e5

Browse files
wecingcopybara-github
authored andcommitted
Remove MLIR Location::isa() usages.
This was deleted in the upstream: llvm/llvm-project#135556 PiperOrigin-RevId: 747927733
1 parent 345ae8d commit 6dc35e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: lib/bef_converter/mlir_to_bef/bef_location_emitter.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "bef_location_emitter.h"
1818

19+
#include "llvm/Support/Casting.h"
1920
#include "mlir/IR/Location.h"
2021
#include "mlir/IR/Operation.h"
2122
#include "mlir/IR/OperationSupport.h"
@@ -24,9 +25,9 @@
2425
namespace tfrt {
2526

2627
bool BefLocationEmitter::IsSupportedLocation(const mlir::Location& loc) {
27-
if (loc.isa<mlir::UnknownLoc>()) return true;
28-
if (loc.isa<mlir::NameLoc>()) return true;
29-
if (loc.isa<mlir::FileLineColLoc>()) return true;
28+
if (llvm::isa<mlir::UnknownLoc>(loc)) return true;
29+
if (llvm::isa<mlir::NameLoc>(loc)) return true;
30+
if (llvm::isa<mlir::FileLineColLoc>(loc)) return true;
3031
if (auto callsite_loc = loc.dyn_cast<mlir::CallSiteLoc>()) {
3132
return IsSupportedLocation(callsite_loc.getCallee()) &&
3233
IsSupportedLocation(callsite_loc.getCaller());

0 commit comments

Comments
 (0)