From 9098f64ccce3c3e110e9ef4f08aa2842add4ef08 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 21 May 2003 20:23:26 +0000 Subject: [PATCH] Fix Bug: BasicAA/2003-05-21-GEP-Problem.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6270 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BasicAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 4911c0d6937..cdf6f6dc44e 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -290,7 +290,7 @@ BasicAliasAnalysis::CheckGEPInstructions(GetElementPtrInst *GEP1, unsigned G1S, if (isa(Op2)) Indices2.push_back((Value*)Op2); else // Conservatively assume the minimum value for this index - Indices2.push_back(Constant::getNullValue(Op1->getType())); + Indices2.push_back(Constant::getNullValue(Op2->getType())); } }