aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-09-26 10:27:38 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-09-26 10:27:38 +0100
commit75e90ea7668fc5a7cc7fbae13070bf8558f884de (patch)
treec672356a2ed25c26d2ec8a7cc7fac1e00d0f61a3 /clang/lib/CodeGen/CGDebugInfo.cpp
parentbebc96956b76bdbc36f1d82a788c810e5b12e2c5 (diff)
downloadllvm-75e90ea7668fc5a7cc7fbae13070bf8558f884de.zip
llvm-75e90ea7668fc5a7cc7fbae13070bf8558f884de.tar.gz
llvm-75e90ea7668fc5a7cc7fbae13070bf8558f884de.tar.bz2
Fix MSVC "not all control paths return a value" warning. NFCI.
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6f6bad1..6302741 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -370,6 +370,7 @@ CGDebugInfo::computeChecksum(FileID FID, SmallString<64> &Checksum) const {
llvm::toHex(llvm::SHA256::hash(Data), /*LowerCase=*/true, Checksum);
return llvm::DIFile::CSK_SHA256;
}
+ llvm_unreachable("Unhandled DebugSrcHashKind enum");
}
Optional<StringRef> CGDebugInfo::getSource(const SourceManager &SM,