between r241513 and r241594, clang 3.7.0svn now crashes building clang-tools-extra

Since we are only a week away from branching for 3.7.0, this new
breakage in the stage2 bootstrap of
llvm/clang/compiler-rt/clang-tools-extra should get triaged. At
r241513, a three stage bootstrap with comparision of stage2/stage3
files completed fine. However at r241594 we now have the new
regression reported in

Assertion failed: (Val && "isa<> used on a null pointer"), function
doit, file /sw/src/,
line 95.
0 libLLVMSupport.3.7.0.dylib 0x00000001087e9e09
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1 libLLVMSupport.3.7.0.dylib 0x00000001087ea9fb SignalHandler(int) + 875
2 libsystem_platform.dylib 0x00007fff97427f1a _sigtramp + 26
3 libsystem_platform.dylib 0x00007fff58cdc578 _sigtramp + 3247130232
4 libLLVMSupport.3.7.0.dylib 0x00000001087ea5e6 abort + 22
5 libLLVMSupport.3.7.0.dylib 0x00000001087ea5c1 __assert_rtn + 81
6 libLLVMTransformUtils.3.7.0.dylib 0x0000000108870236
llvm::ConstantFoldTerminator(llvm::BasicBlock*, bool,
llvm::TargetLibraryInfo const*) + 3782
7 libLLVMScalarOpts.3.7.0.dylib 0x000000010867905b (anonymous
namespace)::IPSCCP::runOnModule(llvm::Module&) + 6043
8 libLLVMCore.3.7.0.dylib 0x0000000108131aa3
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1123
9 libclangCodeGen.3.7.0.dylib 0x0000000109ea94da
clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::StringRef, llvm::Module*,
clang::BackendAction, llvm::raw_pwrite_stream*) + 7866
10 libclangCodeGen.3.7.0.dylib 0x000000010a0347f2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) +
11 libclangParse.3.7.0.dylib 0x0000000109568ed4
clang::ParseAST(clang::Sema&, bool, bool) + 468
12 libclangFrontend.3.7.0.dylib 0x0000000108c76aab
clang::FrontendAction::Execute() + 75
13 libclangFrontend.3.7.0.dylib 0x0000000108c408ac
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 956
14 libclangFrontendTool.3.7.0.dylib 0x0000000108d1136c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4140
15 clang-3.7 0x0000000106f2d338
cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 936
16 clang-3.7 0x0000000106f2bde0 main + 11488
17 libdyld.dylib 0x00007fff901a45c9 start + 1
18 libdyld.dylib 0x0000000000000053 start + 1877326475
Stack dump:
0. Program arguments:
/sw/src/ -cc1
-triple x86_64-apple-macosx10.10.0 -emit-obj -disable-free
-main-file-name ARMISelLowering.cpp -mrelocation-model pic -pic-level
2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 242.2 -dwarf-column-info
-coverage-file /sw/src/
-resource-dir /sw/src/
-cxx-isystem /sw/src/
/sw/src/ -I
/sw/src/ -I
/sw/src/ -I
-stdlib=libc++ -O3 -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -Wno-long-long
-Wnon-virtual-dtor -pedantic -std=c++11 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 141 -fvisibility-inlines-hidden
-stack-protector 1 -mstackrealign -fblocks -fno-rtti
-fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o
CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o -x c++
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Interprocedural Sparse Conditional Constant
Propagation' on module
clang-3.7: error: unable to execute command: Illegal instruction: 4
clang-3.7: error: clang frontend command failed due to signal (use -v
to see invocation)
clang version 3.7.0 (trunk)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed
source, and associated run script.
clang-3.7: note: diagnostic msg:

We caught that on tape :slight_smile:

I'm bisecting, it fails with 241570, works with 241566.


Hi Jack,

It was indeed 241570, and it should be fixed as of 241616. Please, try again.