From: Reid Kleckner Date: Fri, 3 Jan 2014 23:51:09 +0000 (+0000) Subject: Fix MSVC warning about missing return in DataLayout X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=15b3169062dc90a7ce263c0fec98511c957c1083;p=oota-llvm.git Fix MSVC warning about missing return in DataLayout git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198465 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DataLayout.h b/include/llvm/IR/DataLayout.h index 520d4ede181..9ffa056355d 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h @@ -257,6 +257,7 @@ public: case MM_COFF: return '_'; } + llvm_unreachable("invalid mangling mode"); } const char *getPrivateGlobalPrefix() const { @@ -271,6 +272,7 @@ public: case MM_COFF: return "L"; } + llvm_unreachable("invalid mangling mode"); } static const char *getManglingComponent(const Triple &T);