mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 16:25:25 +00:00
Add track_caller to type lookups (#599)
This commit is contained in:
parent
a42a9f20e1
commit
d04039efda
@ -124,6 +124,7 @@ impl<'tcx> CodegenCx<'tcx> {
|
|||||||
self.builder.builder(cursor)
|
self.builder.builder(cursor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[track_caller]
|
||||||
pub fn lookup_type(&self, ty: Word) -> SpirvType {
|
pub fn lookup_type(&self, ty: Word) -> SpirvType {
|
||||||
self.type_cache.lookup(ty)
|
self.type_cache.lookup(ty)
|
||||||
}
|
}
|
||||||
|
@ -705,6 +705,7 @@ impl TypeCache<'_> {
|
|||||||
self.type_defs.borrow().get_by_right(ty).copied()
|
self.type_defs.borrow().get_by_right(ty).copied()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[track_caller]
|
||||||
pub fn lookup(&self, word: Word) -> SpirvType {
|
pub fn lookup(&self, word: Word) -> SpirvType {
|
||||||
self.type_defs
|
self.type_defs
|
||||||
.borrow()
|
.borrow()
|
||||||
|
Loading…
Reference in New Issue
Block a user