diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-10 03:05:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-10 03:05:41 +0000 |
commit | 09e99e41aa15eafc93b4e922f0165d527bf2e622 (patch) | |
tree | 24b80b691f784d3cbe8f7455b6e102f39881bbd9 | |
parent | 903361e50903a662287340103fda23e177e8b6d4 (diff) |
move some cases around to silence these sorts of warnings in
release-asserts build:
llvm/CodeGen/SelectionDAGNodes.h:1298: warning: control may reach end of non-void function 'unsigned int llvm::MVT::getSizeInBits() const' being inlined
what an unhelpful warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58957 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index a6fa57dfb4..84e77fb77c 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -349,6 +349,12 @@ namespace llvm { /// getSizeInBits - Return the size of the specified value type in bits. unsigned getSizeInBits() const { switch (V) { + case iPTR: + assert(0 && "Value type size is target-dependent. Ask TLI."); + case iPTRAny: + case iAny: + case fAny: + assert(0 && "Value type is overloaded."); default: return getExtendedSizeInBits(); case i1 : return 1; @@ -375,12 +381,6 @@ namespace llvm { case v2i64: case v4f32: case v2f64: return 128; - case iPTR: - assert(false && "Value type size is target-dependent. Ask TLI."); - case iPTRAny: - case iAny: - case fAny: - assert(false && "Value type is overloaded."); } } |