================
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o 
- | FileCheck %s
----------------
andykaylor wrote:

> clang: 
> /home/justin/code/llvm-project/mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp:219: 
> static LLVMFunctionType
> mlir::LLVM::LLVMFunctionType::get(Type, ArrayRef, bool): Assertion `result && 
> "expected non-null result"' failed.

I ran into that recently. I think it's because we weren't providing a converted 
for the `!cir.void` type. I added one in a PR that I merged yesterday.

https://github.com/llvm/llvm-project/blob/0d9b9d1eef17cd9fa0ea5b1b62469703f9a4dda5/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp#L2255

Can you rebase your patch and try it again.

https://github.com/llvm/llvm-project/pull/154060
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to