Skip to content

clang-tidy x86 crashes when modernize-use-nullptr check is enabled. #53778

@kylereedmsft

Description

@kylereedmsft

"C:\Program Files\Microsoft Visual Studio\2022\main\VC\Tools\Llvm\bin\clang-tidy.exe" repro.cpp --checks="modernize-use-nullptr"
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: "C:\Program Files\Microsoft Visual Studio\2022\main\VC\Tools\Llvm\bin\clang-tidy.exe" repro.cpp --checks=modernize-use-nullptr
#0 0x0167f750 C:\Program Files\Microsoft Visual Studio\2022\main\VC\Tools\Llvm\bin\clang-tidy.exe 0xd3f750
0x0167F750 (0x00000069 0x00000104 0x04730CD0 0x0438E038)

LLVM (http://llvm.org/):
LLVM version 13.0.0
Optimized build.
Default target: i686-pc-windows-msvc
Host CPU: skylake

Host OS: x64 Windows 11.

I'm using the toolset that ships with Visual Studio, but this also repros with the official release.
repro.cpp is an empty file, but it will repro on any file.
This issue does not repro with the x64 version of the tool.
Both modernize-use-nullptr and hicpp-use-nullptr will cause the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions