[all-commits] [llvm/llvm-project] 1db2d5: [llvm][TableGen] Fix misleading error for invalid ...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Dec 9 05:22:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1db2d571b501851d7c0b72c61a7ba9e30f6db5ea
      https://github.com/llvm/llvm-project/commit/1db2d571b501851d7c0b72c61a7ba9e30f6db5ea
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M llvm/lib/TableGen/TGParser.cpp
    A llvm/test/TableGen/letUnknownValue.td

  Log Message:
  -----------
  [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 = [];
      ^
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list