[clang] 4cd7d8e - [clang] UnsafeBufferUsage.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 02:18:13 PDT 2023
Author: Simon Pilgrim
Date: 2023-07-27T10:17:57+01:00
New Revision: 4cd7d8e30aca25c86ff40cd547f78b27d573a503
URL: https://github.com/llvm/llvm-project/commit/4cd7d8e30aca25c86ff40cd547f78b27d573a503
DIFF: https://github.com/llvm/llvm-project/commit/4cd7d8e30aca25c86ff40cd547f78b27d573a503.diff
LOG: [clang] UnsafeBufferUsage.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/lib/Analysis/UnsafeBufferUsage.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp
index 781dc13c898d22..d0451401dc305a 100644
--- a/clang/lib/Analysis/UnsafeBufferUsage.cpp
+++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -322,6 +322,7 @@ class Gadget {
#define GADGET(x) case Kind::x: return #x;
#include "clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def"
}
+ llvm_unreachable("Unhandled Gadget::Kind enum");
}
#endif
More information about the cfe-commits
mailing list