Regression

LLVM.CodeGen/WebAssembly.switch.ll (from LLVM)

Failing for the past 1 build (Since Failed#7154 )
Took 23 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/WebAssembly/switch.ll -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -disable-block-placement -verify-machineinstrs | /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/WebAssembly/switch.ll
--
Exit Code: 2

Command Output (stderr):
--
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -disable-block-placement -verify-machineinstrs 
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'WebAssembly Fix br_table Defaults' on function '@bar32'
AddressSanitizer:DEADLYSIGNAL
=================================================================
==98343==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x00010729ad7f bp 0x7ffeea74b5f0 sp 0x7ffeea74b1c0 T0)
==98343==The signal is caused by a READ memory access.
==98343==Hint: this fault was caused by a dereference of a high value address (see register values below).  Dissassemble the provided pc to learn which register was used.
    #0 0x10729ad7f in (anonymous namespace)::WebAssemblyFixBrTableDefaults::runOnMachineFunction(llvm::MachineFunction&) MachineInstr.h:435
    #1 0x108abd46b in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) MachineFunctionPass.cpp:73
    #2 0x1094cc1f5 in llvm::FPPassManager::runOnFunction(llvm::Function&) LegacyPassManager.cpp:1482
    #3 0x1094ccce3 in llvm::FPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:1518
    #4 0x1094cda0c in llvm::legacy::PassManagerImpl::run(llvm::Module&) LegacyPassManager.cpp:1583
    #5 0x1054bab89 in compileModule(char**, llvm::LLVMContext&) llc.cpp:650
    #6 0x1054b598c in main llc.cpp:360
    #7 0x7fff7b8e2084 in start+0x0 (libdyld.dylib:x86_64+0x17084)

==98343==Register values:
rax = 0x093ed1293c712908  rbx = 0x00007ffeea74b4a0  rcx = 0xee543d35802900b3  rdx = 0x0000100000000000  
rdi = 0x0000621000039bb8  rsi = 0x49f68949e3894840  rbp = 0x00007ffeea74b5f0  rsp = 0x00007ffeea74b1c0  
 r8 = 0x0000621000034d88   r9 = 0x0000100000000000  r10 = 0x00001fffdd4e95f8  r11 = 0x0000000000000320  
r12 = 0x00007ffeea74b240  r13 = 0x0000621000039c88  r14 = 0x00007ffeea74b1e0  r15 = 0x0000000106cecfe0  
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV MachineInstr.h:435 in (anonymous namespace)::WebAssemblyFixBrTableDefaults::runOnMachineFunction(llvm::MachineFunction&)
==98343==ABORTING
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/WebAssembly/switch.ll

--