From c6db895ece082dae842b791377bcdaa0523f78c2 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Jul 2016 11:12:02 +0000 Subject: [PATCH] Fix "not all control paths return a value" warning on MSVC llvm-svn: 274746 --- clang/lib/Basic/Targets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 38e77f0d1aca..4d784d5694ac 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1804,6 +1804,8 @@ public: return "610"; case CudaArch::SM_62: return "620"; + default: + llvm_unreachable("unhandled CudaArch"); } }(); Builder.defineMacro("__CUDA_ARCH__", CUDAArchCode);