sprinkle some llvm_unreachable for MSVC (NFC)

MSVC does not realize that the switch is exhaustive and requires that
the path is explicitly marked as unreachable.  This silences the C4715
warning ("not all control paths return a value").
This commit is contained in:
Saleem Abdulrasool
2020-04-24 18:57:44 -07:00
parent f883ca6950
commit fa46f7131c
18 changed files with 24 additions and 0 deletions

View File

@@ -165,6 +165,7 @@ public:
return MemBehavior::MayWrite;
}
llvm_unreachable("invalid access kind");
}
MemBehavior visitEndAccessInst(EndAccessInst *endAccess) {