Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

PHINode should have one entry for each predecessor of its parent basic block #31079

Open Quuxplusone opened 7 years ago

Quuxplusone commented 7 years ago
Bugzilla Link PR32106
Status NEW
Importance P normal
Reported by David Binderman (dcb314@hotmail.com)
Reported on 2017-03-01 09:39:18 -0800
Last modified on 2017-03-01 10:48:37 -0800
Version trunk
Hardware PC Linux
CC hfinkel@anl.gov, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments KviIrcView_getTextLine-92ae28.cpp.xz (656352 bytes, application/x-xz)
KviIrcView_getTextLine-92ae28.sh (12518 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 18035
xz compressed source code

The attached code causes a recent version of clang trunk to go haywire.
Quuxplusone commented 7 years ago

Attached KviIrcView_getTextLine-92ae28.cpp.xz (656352 bytes, application/x-xz): xz compressed source code

Quuxplusone commented 7 years ago

Attached KviIrcView_getTextLine-92ae28.sh (12518 bytes, text/plain): Shell script to run the compiler

Quuxplusone commented 7 years ago
PHINode should have one entry for each predecessor of its parent basic block!
  %loop_begin.1.clone = phi i8* [ %merge3042, %.split3040 ], [ blockaddress(@_ZN10KviIrcView11getTextLineEiPKtP15_KviIrcViewLinebRK9QDateTime, %while.cond), %if.end119 ]
fatal error: error in backend: Broken function found, compilation aborted!
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (trunk 296161)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/dcb/llvm/results/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/KviIrcView_getTextLine-92ae28.cpp
clang-5.0: note: diagnostic msg: /tmp/KviIrcView_getTextLine-92ae28.sh
clang-5.0: note: diagnostic msg: