There was an error while loading. Please reload this page.
1 parent 281a322 commit 46e9c43Copy full SHA for 46e9c43
1 file changed
maldoca/js/ir/analyses/constant_propagation/analysis.cc
@@ -193,10 +193,10 @@ void JsirConstantPropagationAnalysis::VisitOpDefault(
193
194
// Merge in the result of the fold, either a constant or a value.
195
mlir::OpFoldResult fold_result = std::get<1>(it);
196
- if (auto attr = fold_result.dyn_cast<mlir::Attribute>()) {
+ if (auto attr = llvm::dyn_cast<mlir::Attribute>(fold_result)) {
197
result.Join(JsirConstantPropagationValue{attr});
198
} else {
199
- auto result_value = fold_result.get<mlir::Value>();
+ auto result_value = llvm::cast<mlir::Value>(fold_result);
200
auto result_state_ref = GetStateAt(result_value);
201
result.Join(result_state_ref.value());
202
}
0 commit comments