mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -418,7 +418,7 @@ Expression ValueTable::create_expression(GetElementPtrInst* G) { | |||||||
|   e.secondVN = 0; |   e.secondVN = 0; | ||||||
|   e.thirdVN = 0; |   e.thirdVN = 0; | ||||||
|   e.type = G->getType(); |   e.type = G->getType(); | ||||||
|   e.opcode = Expression::SELECT; |   e.opcode = Expression::GEP; | ||||||
|    |    | ||||||
|   for (GetElementPtrInst::op_iterator I = G->idx_begin(), E = G->idx_end(); |   for (GetElementPtrInst::op_iterator I = G->idx_begin(), E = G->idx_end(); | ||||||
|        I != E; ++I) |        I != E; ++I) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user