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 = []; ^ ```
9 lines
250 B
TableGen
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:{{^}} ^
|
|
} |