<div dir="ltr">Hi,<div><br></div><div>To reproduce, get <a href="http://www.cs.utah.edu/~aek/code/card.cpp">http://www.cs.utah.edu/~aek/code/card.cpp</a> and</div><div><br></div><div><div>[~]> clang++ -O1 card.cpp -o card</div>

<div>clang-3.6: ../lib/Support/IntervalMap.cpp:138: IdxPair llvm::IntervalMapImpl::distribute(unsigned int, unsigned int, unsigned int, const unsigned int *, unsigned int *, unsigned int, bool): Assertion `Sum == Elements + Grow && "Bad distribution sum"' failed.</div>

<div>Stack dump:</div><div>0.      Program arguments: /havana/dist/llvm/bin/clang-3.6 -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -disable-free -main-file-name card.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -dwarf-column-info -resource-dir /havana/dist/llvm/bin/../lib/clang/3.6.0 -internal-isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../include/c++/4.9 -internal-isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../include/c++/4.9/arm-linux-gnueabihf -internal-isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../include/c++/4.9/backward -internal-isystem /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../include/arm-linux-gnueabihf/c++/4.9 -internal-isystem /usr/local/include -internal-isystem /havana/dist/llvm/bin/../lib/clang/3.6.0/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -fdeprecated-macro -fdebug-compilation-dir /home/ismail -ferror-limit 19 -fmessage-length 104 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /havana/tmp/card-13c953.o -x c++ card.cpp</div>

<div>1.      <eof> parser at end of file</div><div>2.      Code generation</div><div>3.      Running pass 'Function Pass Manager' on module 'card.cpp'.</div><div>4.      Running pass 'Greedy Register Allocator' on function '@_Z1T1vS_RfRS_'</div>

<div>clang-3.6: error: unable to execute command: Aborted</div><div>clang-3.6: error: clang frontend command failed due to signal (use -v to see invocation)</div><div>clang version 3.6.0 (215976)</div><div>Target: armv7l-unknown-linux-gnueabihf</div>

<div>Thread model: posix</div><div>clang-3.6: note: diagnostic msg: PLEASE submit a bug report to <a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and associated run script.</div>

<div>clang-3.6: note: diagnostic msg:</div><div>********************</div><div><br></div><div>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:</div><div>Preprocessed source(s) and associated run script(s) are located at:</div>

<div>clang-3.6: note: diagnostic msg: /havana/tmp/card-e32b8e.cpp</div><div>clang-3.6: note: diagnostic msg: /havana/tmp/card-e32b8e.sh</div><div>clang-3.6: note: diagnostic msg:</div><div><br></div><div>********************</div>

</div><div><br></div><div>This is on a native ARMv7 host (BeagleBone Black) and r215896 works fine.</div><div><br></div></div>