[llvm] 7bf9c5b - [JITLink] ppc64.h - fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 02:38:15 PDT 2023
Author: Simon Pilgrim
Date: 2023-07-24T10:37:58+01:00
New Revision: 7bf9c5bbb7d109752b31457cbf2c86012f50d4a4
URL: https://github.com/llvm/llvm-project/commit/7bf9c5bbb7d109752b31457cbf2c86012f50d4a4
DIFF: https://github.com/llvm/llvm-project/commit/7bf9c5bbb7d109752b31457cbf2c86012f50d4a4.diff
LOG: [JITLink] ppc64.h - fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h b/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
index 6d6a5a1a93458b..0b2d562b71c487 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
@@ -98,6 +98,7 @@ inline PLTCallStubInfo pickStub(PLTCallStubKind StubKind) {
};
}
}
+ llvm_unreachable("Unknown PLTCallStubKind enum");
}
inline Symbol &createAnonymousPointer(LinkGraph &G, Section &PointerSection,
More information about the llvm-commits
mailing list