Skip to content

Commit 46e9c43

Browse files
No public description
PiperOrigin-RevId: 964921484
1 parent 281a322 commit 46e9c43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

maldoca/js/ir/analyses/constant_propagation/analysis.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ void JsirConstantPropagationAnalysis::VisitOpDefault(
193193

194194
// Merge in the result of the fold, either a constant or a value.
195195
mlir::OpFoldResult fold_result = std::get<1>(it);
196-
if (auto attr = fold_result.dyn_cast<mlir::Attribute>()) {
196+
if (auto attr = llvm::dyn_cast<mlir::Attribute>(fold_result)) {
197197
result.Join(JsirConstantPropagationValue{attr});
198198
} else {
199-
auto result_value = fold_result.get<mlir::Value>();
199+
auto result_value = llvm::cast<mlir::Value>(fold_result);
200200
auto result_state_ref = GetStateAt(result_value);
201201
result.Join(result_state_ref.value());
202202
}

0 commit comments

Comments
 (0)