aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorIngo Müller <ingomueller@google.com>2025-01-29 13:32:36 +0100
committerGitHub <noreply@github.com>2025-01-29 13:32:36 +0100
commit8d6b24167b7bdc7ac9c969abe73be857bbcf2b5a (patch)
treeac9e9a475bef5167ccb4386490f3feae1c50be00 /clang/lib/Frontend/CompilerInvocation.cpp
parent2f401458266ccd493802e603e3089dca61f8cf6e (diff)
downloadllvm-8d6b24167b7bdc7ac9c969abe73be857bbcf2b5a.zip
llvm-8d6b24167b7bdc7ac9c969abe73be857bbcf2b5a.tar.gz
llvm-8d6b24167b7bdc7ac9c969abe73be857bbcf2b5a.tar.bz2
[mlir] Make `TypedStrAttr` actually enforce the string type. (#124770)
The tablgen definition `TypedStrAttr` is an attribute constraints that is meant to restrict the type of a `StringAttr` to the type given as parameter. However, the definition did not previously restrict the type; any `StringAttr` was accepted. This PR makes the definition actually enforce the type. To test the constraints, the PR also changes the test op that was previously used to test this constraint such that the enforced type is `AnyInteger` instead of `AnyType`. The latter allowed any type, so not enforcing that constraint had no observable effect. The PR then adds a test case with a wrong type and ensures that diagnostics are produced. Signed-off-by: Ingo Müller <ingomueller@google.com>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions