Skip to content

Commit edd1909

Browse files
Zentrikvchuravy
authored andcommitted
Try workarounding clang static analyzer bug
1 parent 3f4a883 commit edd1909

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cgutils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ Constant *literal_pointer_val_slot(jl_codegen_params_t &params, Module *M, jl_va
466466
if (addr->smalltag) {
467467
// some common builtin datatypes have a special pool for accessing them by smalltag id
468468
Constant *tag = ConstantInt::get(getInt32Ty(M->getContext()), addr->smalltag << 4);
469+
[[clang::suppress]] // Workaround https://github.com/llvm/llvm-project/issues/119415
469470
Constant *smallp = ConstantExpr::getInBoundsGetElementPtr(getInt8Ty(M->getContext()), prepare_global_in(M, jl_small_typeof_var), tag);
470471
if (smallp->getType()->getPointerAddressSpace() != 0)
471472
smallp = ConstantExpr::getAddrSpaceCast(smallp, getPointerTy(M->getContext()));

0 commit comments

Comments
 (0)