]> granicus.if.org Git - clang/commit
[CUDA] Fix "control reaches end of non-void function" warnings in Cuda.cpp.
authorJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 01:06:59 +0000 (01:06 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 01:06:59 +0000 (01:06 +0000)
commit6a050a4c9e4bc140b8528293183e9f2550c91721
tree63b0fa3d976d90447110308747ebd671a294f376
parenta9119fb208274ebacec020c73768827e74ec5214
[CUDA] Fix "control reaches end of non-void function" warnings in Cuda.cpp.

Some compilers are too dumb to realize that the switch statement covers
all cases.

(Don't use a "default" label, because we explicitly want to get a warning
if our switch doesn't cover all the cases.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274713 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Cuda.cpp