Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/lower/asm.rs')
-rw-r--r--crates/hir-def/src/expr_store/lower/asm.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/hir-def/src/expr_store/lower/asm.rs b/crates/hir-def/src/expr_store/lower/asm.rs
index 633f976a85..ca331e84d3 100644
--- a/crates/hir-def/src/expr_store/lower/asm.rs
+++ b/crates/hir-def/src/expr_store/lower/asm.rs
@@ -11,6 +11,7 @@ use tt::TextRange;
use crate::{
expr_store::lower::{ExprCollector, FxIndexSet},
hir::{AsmOperand, AsmOptions, Expr, ExprId, InlineAsm, InlineAsmRegOrRegClass},
+ type_ref::TypeRef,
};
impl ExprCollector<'_> {
@@ -158,7 +159,10 @@ impl ExprCollector<'_> {
AsmOperand::Const(self.collect_expr_opt(c.expr()))
}
ast::AsmOperand::AsmSym(s) => {
- let Some(path) = s.path().and_then(|p| self.parse_path(p)) else {
+ let Some(path) = s
+ .path()
+ .and_then(|p| self.lower_path(p, &mut |_| TypeRef::Error))
+ else {
continue;
};
AsmOperand::Sym(path)