[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 1 23:02:01 PDT 2004
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGBuilder.cpp updated: 1.4 -> 1.5
---
Log message:
Fix a trivial but blatant bug
---
Diffs of the changes: (+4 -4)
Index: llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.4 llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.5
--- llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.4 Tue Nov 11 16:41:33 2003
+++ llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp Tue Jun 1 22:57:43 2004
@@ -253,10 +253,10 @@
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
More information about the llvm-commits
mailing list