<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/73116>73116</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Segmentation fault compiling Clang 16.0.4
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          tardigradus
      </td>
    </tr>
</table>

<pre>
    I am getting a segmentation fault when compiling Clang 16.0.4 with GCC 12.2.0

```
Stack dump:
0.      Program arguments: /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt -O3 -openmp-opt-disable -attributor-enable=module /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/internalized_libomptarget-nvptx-sm_90.bc -o /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/libomptarget-nvptx-sm_90.bc
 #0 0x0000000002087cee llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x2087cee)
 #1 0x000000000208565b SignalHandler(int) Signals.cpp:0:0
 #2 0x00002aaaaacde630 __restore_rt sigaction.c:0:0
 #3 0x0000000002018780 llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x2018780)
 #4 0x00000000018206b5 llvm::ValueSymbolTable::createValueName(llvm::StringRef, llvm::Value*) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x18206b5)
 #5 0x0000000001818774 llvm::Value::setNameImpl(llvm::Twine const&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x1818774)
 #6 0x0000000001818949 llvm::Value::setName(llvm::Twine const&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x1818949)
 #7 0x00000000021f2b88 llvm::IRBuilderBase::CreateCall(llvm::FunctionType*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, llvm::Twine const&, llvm::MDNode*) (.constprop.0) PredicateInfo.cpp:0:0
 #8 0x00000000021f7619 llvm::PredicateInfoBuilder::materializeStack(unsigned int&, llvm::SmallVectorImpl<llvm::ValueDFS>&, llvm::Value*) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x21f7619)
 #9 0x00000000021fb759 llvm::PredicateInfoBuilder::renameUses(llvm::SmallVectorImpl<llvm::Value*>&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x21fb759)
#10 0x00000000021fc5be llvm::PredicateInfoBuilder::buildPredicateInfo() (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x21fc5be)
#11 0x00000000021fca59 llvm::PredicateInfo::PredicateInfo(llvm::Function&, llvm::DominatorTree&, llvm::AssumptionCache&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x21fca59)
#12 0x00000000019dd773 llvm::AnalysisResultsForFn llvm::function_ref<llvm::AnalysisResultsForFn (llvm::Function&)>::callback_fn<llvm::IPSCCPPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)::'lambda2'(llvm::Function&)>(long, llvm::Function&) SCCP.cpp:0:0
#13 0x00000000019deba7 runIPSCCP(llvm::Module&, llvm::DataLayout const&, llvm::AnalysisManager<llvm::Function>*, std::function<llvm::TargetLibraryInfo const& (llvm::Function&)>, std::function<llvm::TargetTransformInfo& (llvm::Function&)>, std::function<llvm::AssumptionCache& (llvm::Function&)>, llvm::function_ref<llvm::AnalysisResultsForFn (llvm::Function&)>, bool) SCCP.cpp:0:0
#14 0x00000000019e0ebd llvm::IPSCCPPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x19e0ebd)
#15 0x000000000242060d llvm::detail::PassModel<llvm::Module, llvm::IPSCCPPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x242060d)
#16 0x00000000017e9b89 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x17e9b89)
#17 0x000000000080aaad llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x80aaad)
#18 0x0000000000755cdb main (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x755cdb)
#19 0x00002aaaaccbc555 __libc_start_main (/lib64/libc.so.6+0x22555)
#20 0x00000000007fc796 _start (/trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt+0x7fc796)
/bin/sh: line 1: 189653 Segmentation fault /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/bin/opt -O3 -openmp-opt-disable -attributor-enable=module /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/internalized_libomptarget-nvptx-sm_90.bc -o /trinity/shared/easybuild/build/Clang/16.0.4/GCCcore-12.2.0/llvm.obj.1/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/libomptarget-nvptx-sm_90.bc
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWd9z27gR_muoF4w0JCj-etCDLZVXT-M7T6zmVbMkVxQuIMABwDjqX98BSTuEJPvc3kRN56JJTApYLr7vw-4CoEBrVgvElRfdetFmBp05SLUyoCpWK6g6PStkdVzdEWhIjcYwURMgGusGhQHDpCB76LghTwcUpJRNy7i1WXMQNQnihb9YkidmDuSX9ZoEdEEXvudvPP9m_Bv747_-66OB8jOpuqb1wtHCX5D-86BkraAhoOrODq698IZ4NDeKCWaOHs31ARRWHs0R9LHoGLf3z9cekEfzAZJH81_W61IqnI-YaM75l2Yhi98XgX2MCY_msjVk_ltI5rJF0bRz2Zp5xTQUHMkcjFGs6IxUcxS2yQs3jaw6jt8PluqEYQ3qye28YEL3WC1E-wArZNMaUDUaj-Yb_MJK_Lj94NGcCYNKAGf_wmo3tZuLL635OtfNLvMXRUnm8ofl8AbsIWCIR0Of-F_95w_106REJBaFDavwRh_1cPOgmDB90G0VlOjR9JuRgqed1EYhNB6NPbomTBiPZsSj6fePO4_e-l9H5B7NvlELTqhFcVSQR1YL4H8HUXFUHk1HpEOzXpStzSe____iiI6OKNhPWWEc-mS3U6iNVLhThmhWQ2lzfFGePx66OII0Sf2JxI9Wn_oe2rum5UPTByk_d-1tV35Gk0vliD2Yf8T9tQXucTsCL6fEgpT6cRFNiH0C3uHjsSkk3w5Zb1tLhWCw7_sVGnyN2_rUkUdvrst4JOQwjlzGQZokyzOgQ-KgsfT6OZ1S3D4xgaSUQps-V67LqAfsMIpPGWXL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