Skip to content

Commit 4cd7d8e

Browse files
committed
[clang] UnsafeBufferUsage.cpp - fix MSVC "not all control paths return a value" warning. NFC.
1 parent beabfe7 commit 4cd7d8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Analysis/UnsafeBufferUsage.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ class Gadget {
322322
#define GADGET(x) case Kind::x: return #x;
323323
#include "clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def"
324324
}
325+
llvm_unreachable("Unhandled Gadget::Kind enum");
325326
}
326327
#endif
327328

0 commit comments

Comments
 (0)