From 6eaa46956aa0b35d7b4b1d49fd70d077870a296e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 20 Dec 2002 04:13:28 +0000 Subject: [PATCH] Fix warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5109 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86RegisterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 9fcec8ce2e3..5625d452c5c 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -14,12 +14,12 @@ unsigned getIdx(unsigned dataSize) { switch (dataSize) { + default: assert(0 && "Invalid data size!"); case 1: return 0; case 2: return 1; case 4: return 2; // FIXME: longs handled as ints case 8: return 2; - default: assert(0 && "Invalid data size!"); } }