apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.09k stars 320 forks source link

[Cherry-pick into next] [SwiftExpressionParser] Suppress spurious variable lookup errors #8907

Closed adrian-prantl closed 2 weeks ago

adrian-prantl commented 2 weeks ago
commit 3b5ae9e18e872121f588c6a4f1bbf7ca8af97a52
Author: Adrian Prantl <aprantl@apple.com>
Date:   Fri Jun 14 17:01:12 2024 -0700

    [SwiftExpressionParser] Suppress spurious variable lookup errors

    If a variable's type cannot be found, LLDB produces a diagnostic to
    that end, but the Swift compiler will also produce a spurious
    diagnostic that the identifier couldn't be found. This patch
    suppresses Swift diagnostics when there was a type lookup error.

    rdar://125613361