diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2021-02-25 13:30:40 -0800 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2021-02-25 15:32:18 -0800 |
commit | 41751b637317bd9c97b0506ba77075694cd2d9cf (patch) | |
tree | 20b592d0c2c6c4a2bbbfa9073d414a356646ab16 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 24539f1ef2471d07bd87f833cb0288fc0f251f4b (diff) | |
download | llvm-41751b637317bd9c97b0506ba77075694cd2d9cf.zip llvm-41751b637317bd9c97b0506ba77075694cd2d9cf.tar.gz llvm-41751b637317bd9c97b0506ba77075694cd2d9cf.tar.bz2 |
[Clang][ASan] Correct AsanDtorKindToString to return non-void in default case
Post D96572, a warning started showing up for me:
`clang/lib/Basic/Sanitizers.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]`
So this adds a default to the case to return invalid, which seems appropriate,
and appears to correct the issue.
Differential Revision: https://reviews.llvm.org/D97496
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions