File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,8 @@ SKIP_IMPLICIT_ATOMICS := dump.c module.c staticdata.c codegen.cpp
449449 # these need to be annotated (and possibly fixed)
450450SKIP_GC_CHECK := codegen.cpp rtutils.c
451451
452+ # make sure LLVM's invariant information is not discarded with -DNDEBUG
453+ clang-sagc-% : JL_CXXFLAGS += -UNDEBUG
452454clang-sagc-% : $(SRCDIR ) /% .c $(build_shlibdir ) /libGCCheckerPlugin.$(SHLIB_EXT ) .FORCE | analyzegc-deps-check
453455 @$(call PRINT_ANALYZE, $(build_depsbindir ) /clang -D__clang_gcanalyzer__ --analyze -Xanalyzer -analyzer-werror -Xanalyzer -analyzer-output=text --analyzer-no-default-checks \
454456 -Xclang -load -Xclang $(build_shlibdir ) /libGCCheckerPlugin.$(SHLIB_EXT ) -Xclang -analyzer-checker=core$(COMMA ) julia.GCChecker \
@@ -460,6 +462,7 @@ clang-sagc-%: $(SRCDIR)/%.cpp $(build_shlibdir)/libGCCheckerPlugin.$(SHLIB_EXT)
460462 $(SA_EXCEPTIONS-$(notdir $< ) ) \
461463 $(CLANGSA_FLAGS ) $(CLANGSA_CXXFLAGS ) $(LLVM_CXXFLAGS ) $(JCPPFLAGS ) $(JCXXFLAGS ) $(JL_CXXFLAGS ) $(DEBUGFLAGS ) -fcolor-diagnostics -x c++ $< )
462464
465+ clang-sa-% : JL_CXXFLAGS += -UNDEBUG
463466clang-sa-% : $(SRCDIR ) /% .c .FORCE | analyzegc-deps-check
464467 @$(call PRINT_ANALYZE, $(build_depsbindir ) /clang --analyze -Xanalyzer -analyzer-werror -Xanalyzer -analyzer-output=text \
465468 -Xanalyzer -analyzer-disable-checker=deadcode.DeadStores \
You can’t perform that action at this time.
0 commit comments