aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-10-10 22:59:33 +0200
committerAndrzej Janik <[email protected]>2024-10-10 22:59:33 +0200
commit9035c4a24d23012b15ab3d715b25d7c5a0c43740 (patch)
treec354f94b48442d304ad4a73e0bda9f96b9050858
parentd7a435ff424316edc4e303f89a6373ac45ea1915 (diff)
downloadZLUDA-9035c4a24d23012b15ab3d715b25d7c5a0c43740.tar.gz
ZLUDA-9035c4a24d23012b15ab3d715b25d7c5a0c43740.zip
Fix build
-rw-r--r--ptx/src/pass/emit_llvm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptx/src/pass/emit_llvm.rs b/ptx/src/pass/emit_llvm.rs
index c7e3bbb..7c6cbb7 100644
--- a/ptx/src/pass/emit_llvm.rs
+++ b/ptx/src/pass/emit_llvm.rs
@@ -577,7 +577,7 @@ impl<'a> MethodEmitContext<'a> {
let builder = self.builder;
match conversion.kind {
ConversionKind::Default => {
- match (conversion.from_type, conversion.to_type) {
+ match (&conversion.from_type, &conversion.to_type) {
(ast::Type::Scalar(from_type), ast::Type::Scalar(to_type)) => {
let from_layout = conversion.from_type.layout();
let to_layout = conversion.to_type.layout();