Skip to content

[Clang] Clang assertion failure when run with -cc1 -ast-dump args and a LLVM IR file #88522

@yronglin

Description

@yronglin

Clang assertion failed at

if (Input.getKind().getLanguage() == Language::LLVM_IR) {
assert(hasIRSupport() &&
"This action does not have IR file support!");
, I think we'de better to add a diagnostic message instead assertion failure?

Assertion failed: (hasIRSupport() && "This action does not have IR file support!"), function BeginSourceFile, file FrontendAction.cpp, line 761.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions