From: Owen Anderson Date: Fri, 20 Jul 2007 08:19:20 +0000 (+0000) Subject: Fix a bug where we were marking GEP expressions with the wrong opcode. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c9399be5e5cf2f06370faf00edce044697e6a1c8;p=oota-llvm.git Fix a bug where we were marking GEP expressions with the wrong opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index 9c7c8c2e259..80f745f333b 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp @@ -418,7 +418,7 @@ Expression ValueTable::create_expression(GetElementPtrInst* G) { e.secondVN = 0; e.thirdVN = 0; e.type = G->getType(); - e.opcode = Expression::SELECT; + e.opcode = Expression::GEP; for (GetElementPtrInst::op_iterator I = G->idx_begin(), E = G->idx_end(); I != E; ++I)