mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 01:33:09 +00:00
Add comment explaining LLVM bug and linking tracking issue
This commit is contained in:
parent
d345068ec2
commit
282b398f6d
@ -384,6 +384,11 @@ struct ZigDiagnosticHandler : public DiagnosticHandler {
|
|||||||
bool BrokenDebugInfo;
|
bool BrokenDebugInfo;
|
||||||
ZigDiagnosticHandler() : BrokenDebugInfo(false) {}
|
ZigDiagnosticHandler() : BrokenDebugInfo(false) {}
|
||||||
bool handleDiagnostics(const DiagnosticInfo &DI) override {
|
bool handleDiagnostics(const DiagnosticInfo &DI) override {
|
||||||
|
// This dyn_cast should be casting to DiagnosticInfoIgnoringInvalidDebugMetadata
|
||||||
|
// but DiagnosticInfoIgnoringInvalidDebugMetadata is treated as DiagnosticInfoDebugMetadataVersion
|
||||||
|
// because of a bug in LLVM (see https://github.com/ziglang/zig/issues/19161).
|
||||||
|
// After this is fixed add an additional check for DiagnosticInfoIgnoringInvalidDebugMetadata
|
||||||
|
// but don't remove the current one as both indicate that debug info is broken.
|
||||||
if (auto *Remark = dyn_cast<DiagnosticInfoDebugMetadataVersion>(&DI)) {
|
if (auto *Remark = dyn_cast<DiagnosticInfoDebugMetadataVersion>(&DI)) {
|
||||||
BrokenDebugInfo = true;
|
BrokenDebugInfo = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user