[PATCH] D97496: [Clang][ASan] Correct AsanDtorKindToString to return non-void in default case
    Kostya Kortchinsky via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Feb 25 14:41:49 PST 2021
    
    
  
cryptoad updated this revision to Diff 326516.
cryptoad added a comment.
Opt for a version that satisfies `clang-diagnostic-covered-switch-default`
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97496/new/
https://reviews.llvm.org/D97496
Files:
  clang/lib/Basic/Sanitizers.cpp
Index: clang/lib/Basic/Sanitizers.cpp
===================================================================
--- clang/lib/Basic/Sanitizers.cpp
+++ clang/lib/Basic/Sanitizers.cpp
@@ -70,6 +70,7 @@
   case llvm::AsanDtorKind::Invalid:
     return "invalid";
   }
+  return "invalid";
 }
 
 llvm::AsanDtorKind AsanDtorKindFromString(StringRef kindStr) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97496.326516.patch
Type: text/x-patch
Size: 349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210225/c244cae7/attachment.bin>
    
    
More information about the cfe-commits
mailing list