Skip to content

Commit

Permalink
[gccjit] fix jit version and minor fix for code
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingerZhu committed Dec 2, 2024
1 parent 937e9b9 commit fbb98a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Translation/TranslateToGCCJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ gcc_jit_rvalue *RegionVisitor::visitExprWithoutCache(AlignOfOp op) {
if (resTy.getKind() != GCC_JIT_TYPE_INT)
align = gcc_jit_context_new_cast(getContext(), loc, align, resTyHandle);
return align;
#endif
#else
auto type = op.getType();
auto *typeHandle = getTranslator().convertType(type);
auto *resTyHandle = getTranslator().convertType(op.getResult().getType());
Expand All @@ -1018,6 +1018,7 @@ gcc_jit_rvalue *RegionVisitor::visitExprWithoutCache(AlignOfOp op) {
return gcc_jit_context_new_cast(getContext(), nullptr, fakeFieldAddrValue,
resTyHandle);
return fakeFieldAddrValue;
#endif
}

gcc_jit_rvalue *RegionVisitor::visitExprWithoutCache(AsRValueOp op) {
Expand Down

0 comments on commit fbb98a8

Please sign in to comment.