Skip to content

Commit 3c98be4

Browse files
authored
[clang][bytecode] Pointer::isZero - fix MSVC "not all control paths return a value" warning. NFC. (#161168)
1 parent 9552e89 commit 3c98be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/AST/ByteCode/Pointer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ class Pointer {
262262
case Storage::Typeid:
263263
return false;
264264
}
265+
llvm_unreachable("Unknown clang::interp::Storage enum");
265266
}
266267
/// Checks if the pointer is live.
267268
bool isLive() const {

0 commit comments

Comments
 (0)