-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CIR][CIRGen] Change SignBitOp result type to !cir.bool #1187
[CIR][CIRGen] Change SignBitOp result type to !cir.bool #1187
Conversation
When I added support for error with return
|
I think the error is related to #480 |
It crashes because the result type of the clangir/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp Lines 3834 to 3836 in 888f00c
You could update it to: auto converted = rewriter.create<mlir::LLVM::ZExtOp>(
op.getLoc(), getTypeConverter()->convertType(op.getType()),
cmpResult); And it should be OK then. |
8f257ca
to
6420143
Compare
6420143
to
81f6ee1
Compare
Thank you very much, @orbiri and @Lancern . The @bcardosolopes Please review this patch. |
Co-authored-by: Sirui Mu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.