[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue May 3 09:45:02 PDT 2005



Changes in directory llvm/lib/VMCore:

Instructions.cpp updated: 1.16 -> 1.17
---
Log message:

fix a bug in the 1 index GEP handling code


---
Diffs of the changes:  (+1 -1)

 Instructions.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.16 llvm/lib/VMCore/Instructions.cpp:1.17
--- llvm/lib/VMCore/Instructions.cpp:1.16	Tue May  3 00:43:30 2005
+++ llvm/lib/VMCore/Instructions.cpp	Tue May  3 11:44:45 2005
@@ -728,7 +728,7 @@
   // Check the pointer index.
   if (!PTy->indexValid(Idx)) return 0;
 
-  return PTy;
+  return PTy->getElementType();
 }
 
 //===----------------------------------------------------------------------===//






More information about the llvm-commits mailing list