forked from OSchip/llvm-project
Silence MSVC "not all control paths return a value" warning.
llvm-svn: 241004
This commit is contained in:
parent
83f0fbcc37
commit
81dd16a1e0
|
@ -129,6 +129,8 @@ int SymbolBody::compare(SymbolBody *Other) {
|
|||
case DefinedAbsoluteKind:
|
||||
// These all simply tie.
|
||||
return 0;
|
||||
default:
|
||||
llvm_unreachable("unknown symbol kind");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -161,6 +163,8 @@ uint64_t Defined::getRVA() {
|
|||
case LazyKind:
|
||||
case UndefinedKind:
|
||||
llvm_unreachable("Cannot get the address for an undefined symbol.");
|
||||
default:
|
||||
llvm_unreachable("unknown symbol kind");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -184,6 +188,8 @@ uint64_t Defined::getFileOff() {
|
|||
case LazyKind:
|
||||
case UndefinedKind:
|
||||
llvm_unreachable("Cannot get a file offset for an undefined symbol.");
|
||||
default:
|
||||
llvm_unreachable("unknown symbol kind");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue