From 3c6c19f3c562fa64a61e85396feaccad624afb0d Mon Sep 17 00:00:00 2001 From: Thirumalai Shaktivel Date: Sat, 25 Nov 2023 07:59:45 +0530 Subject: [PATCH] [LLVM] Use `8` as the default kind for CPtr --- src/libasr/codegen/llvm_utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libasr/codegen/llvm_utils.cpp b/src/libasr/codegen/llvm_utils.cpp index 88f77ec930..e19f309b1f 100644 --- a/src/libasr/codegen/llvm_utils.cpp +++ b/src/libasr/codegen/llvm_utils.cpp @@ -1267,6 +1267,7 @@ namespace LCompilers { break; } case (ASR::ttypeType::CPtr) : { + a_kind = 8; llvm_type = llvm::Type::getVoidTy(context)->getPointerTo(); break; }