[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Sep 12 15:28:01 PDT 2002


Changes in directory llvm/lib/CodeGen/InstrSelection:

InstrSelectionSupport.cpp updated: 1.29 -> 1.30

---
Log message:

Fix a bug I introduced into the code generator. :(



---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.29 llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.30
--- llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.29	Tue Sep 10 20:20:03 2002
+++ llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp	Thu Sep 12 15:27:10 2002
@@ -114,7 +114,7 @@
 {
   InstructionNode* gepNode = dyn_cast<InstructionNode>(ptrNode);
   GetElementPtrInst* gepInst =
-    dyn_cast_or_null<GetElementPtrInst>(gepNode->getInstruction());
+    dyn_cast_or_null<GetElementPtrInst>(gepNode ? gepNode->getInstruction() :0);
 
   // ptr value is not computed in this tree or ptr value does not come from GEP
   // instruction





More information about the llvm-commits mailing list