Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

[linux-port] Compilation error of DiagPrinter << std::hex #170

Closed

Description

@ehsannas

Two code snippets are currently commented out in DxilRootSignature.cpp:
https://github.com/google/DirectXShaderCompiler/blob/linux/lib/HLSL/DxilRootSignature.cpp#L486
https://github.com/google/DirectXShaderCompiler/blob/linux/lib/HLSL/DxilRootSignature.cpp#L637

Because it seems that the DiagPrinter does not like std::hex as argument.

Compiler error:
error: invalid operands to binary expression ('llvm::DiagnosticPrinter' and 'std::ios_base &(*)(std::ios_base &)') << "] specifies RegisterSpace=" << std::hex

Activity

  1. ehsannas commented on May 15, 2018

    @ehsannas
    Author

    @pow2clk, would you please take a look?

  2. pow2clk commented on May 16, 2018

    @pow2clk

    The class simply doesn't support std::hex, but MSVC takes it as a void pointer. So it prints the pointer, which isn't what's intended. I've added support for it to DiagnosticPointer and raw_ostream. I'll have a pull request shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions