Fix "not all control paths return a value" warning on MSVC

llvm-svn: 274746
This commit is contained in:
Simon Pilgrim 2016-07-07 11:12:02 +00:00
parent be8b8b5bca
commit c6db895ece
1 changed files with 2 additions and 0 deletions

View File

@ -1804,6 +1804,8 @@ public:
return "610";
case CudaArch::SM_62:
return "620";
default:
llvm_unreachable("unhandled CudaArch");
}
}();
Builder.defineMacro("__CUDA_ARCH__", CUDAArchCode);