Skip to content

Commit d50dec6

Browse files
committed
Fix MSVC "not all control paths return a value" warnings. NFC.
1 parent ec8df55 commit d50dec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ class TargetInfo : public TransferrableTargetInfo,
13861386
case LangOptions::SignReturnAddressScopeKind::All:
13871387
return "all";
13881388
}
1389-
assert(false && "Unexpected SignReturnAddressScopeKind");
1389+
llvm_unreachable("Unexpected SignReturnAddressScopeKind");
13901390
}
13911391

13921392
const char *getSignKeyStr() const {
@@ -1396,7 +1396,7 @@ class TargetInfo : public TransferrableTargetInfo,
13961396
case LangOptions::SignReturnAddressKeyKind::BKey:
13971397
return "b_key";
13981398
}
1399-
assert(false && "Unexpected SignReturnAddressKeyKind");
1399+
llvm_unreachable("Unexpected SignReturnAddressKeyKind");
14001400
}
14011401
};
14021402

0 commit comments

Comments
 (0)