aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/JSON.cpp
diff options
context:
space:
mode:
authorMikhail Maltsev <mikhail.maltsev@arm.com>2020-09-24 10:22:54 +0100
committerMikhail Maltsev <mikhail.maltsev@arm.com>2020-09-24 10:24:22 +0100
commit8cc842a95072aaa87b5067a12aa9ef5b3ac8e592 (patch)
tree80e6a35e86ba7b528c7a3301bffd1941198acd5a /llvm/lib/Support/JSON.cpp
parent4035cb7ac5755357222b6a83d76bdc4c2d718c54 (diff)
downloadllvm-8cc842a95072aaa87b5067a12aa9ef5b3ac8e592.zip
llvm-8cc842a95072aaa87b5067a12aa9ef5b3ac8e592.tar.gz
llvm-8cc842a95072aaa87b5067a12aa9ef5b3ac8e592.tar.bz2
[clang][Sema] Use enumerator instead of hard-coded constant
Sema::DiagnoseSwiftName uses the constant 12 instead of the corresponding enumerator ExpectedFunctionWithProtoType. This is fragile and will fail if a new value gets added in the middle of the enum. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D88164
Diffstat (limited to 'llvm/lib/Support/JSON.cpp')
0 files changed, 0 insertions, 0 deletions