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

[SwiftExpressionParser] Suppress spurious variable lookup errors #8903

Closed adrian-prantl closed 2 weeks ago

adrian-prantl commented 2 weeks ago

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

adrian-prantl commented 2 weeks ago

@swift-ci test