Skip to content

Commit d32d20f

Browse files
committed
NumericalStabilitySanitizer.cpp - fix MSVC "not all control paths return a value" warnings. NFC.
1 parent c46a95c commit d32d20f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ static Type *typeFromFTValueType(FTValueType VT, LLVMContext &Context) {
239239
case kNumValueTypes:
240240
return nullptr;
241241
}
242+
llvm_unreachable("Unhandled FTValueType enum");
242243
}
243244

244245
// Returns the type name for an FTValueType.
@@ -253,6 +254,7 @@ static const char *typeNameFromFTValueType(FTValueType VT) {
253254
case kNumValueTypes:
254255
return nullptr;
255256
}
257+
llvm_unreachable("Unhandled FTValueType enum");
256258
}
257259

258260
// A specific mapping configuration of application type to shadow type for nsan
@@ -395,6 +397,7 @@ class CheckLoc {
395397
case kStore:
396398
return Builder.CreatePtrToInt(Address, IntptrTy);
397399
}
400+
llvm_unreachable("Unhandled CheckType enum");
398401
}
399402

400403
private:

0 commit comments

Comments
 (0)