From fd0f7b113120a7eed61c721aa74222fa85fdd571 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 Jun 2004 03:57:43 +0000 Subject: [PATCH] Fix a trivial but blatant bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13947 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGBuilder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGBuilder.cpp b/lib/CodeGen/SelectionDAG/DAGBuilder.cpp index fd4e7a90c7d..d1d3c562218 100644 --- a/lib/CodeGen/SelectionDAG/DAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/DAGBuilder.cpp @@ -253,10 +253,10 @@ SelectionDAG::SelectionDAG(MachineFunction &f, const TargetMachine &tm, switch (TM.getTargetData().getPointerSize()) { default: assert(0 && "Unknown pointer size!"); abort(); - case 8: PointerType = MVT::i8; break; - case 16: PointerType = MVT::i16; break; - case 32: PointerType = MVT::i32; break; - case 64: PointerType = MVT::i64; break; + case 1: PointerType = MVT::i8; break; + case 2: PointerType = MVT::i16; break; + case 3: PointerType = MVT::i32; break; + case 4: PointerType = MVT::i64; break; } // Create all of the machine basic blocks for the function... building the