Files
clang-p2996/llvm/test/TableGen/letUnknownValue.td
David Spickett 1db2d571b5 [llvm][TableGen] Fix misleading error for invalid use of let (#118616)
Fixes #118490

Point to the value name, otherwise it implies that the part after the
'=' is the problem.

Before:
```
/tmp/test.td:2:27: error: Value 'FlattenedFeatures' unknown!
  let FlattenedFeatures = [];
                          ^
```
After:
```
/tmp/test.td:2:7: error: Value 'FlattenedFeatures' unknown!
  let FlattenedFeatures = [];
      ^
```
2024-12-09 13:21:46 +00:00

9 lines
250 B
TableGen

// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s --strict-whitespace
def {
/// Let can only override something that already exists.
let abc = [];
// CHECK: error: Value 'abc' unknown!
// CHECK-NEXT:{{^}} let abc = [];
// CHECK-NEXT:{{^}} ^
}