https://llvm.org/bugs/show_bug.cgi?id=25983
Bug ID: 25983 Summary: DEBUG output in InstructionCombining.cpp causing seg fault Product: new-bugs Version: unspecified Hardware: PC OS: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: pauls...@linux.vnet.ibm.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15539 --> https://llvm.org/bugs/attachment.cgi?id=15539&action=edit clang input InstructionCombining is outputting a new instruction to dbgs(), without the new instruction having been insterted into BB. The result is that an AssemblyWriter is created with a null TheModule pointer. A seg fault is caused by the supplied test case. run: clang -cc1 -triple s390x-ibm-linux-gnu -S -disable-free -main-file-name ckd_alloc.c -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu z13 -target-linker-version 2.25 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -O3 -ferror-limit 19 -fmessage-length 0 -funroll-loops -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -mllvm -debug -o ckd_alloc.s -x ir ckd_alloc.bc -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs