[opaque pointer type] Bitcode support for explicit type parameter on the gep operator
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Mar 2015 21:03:36 +0000 (21:03 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Mar 2015 21:03:36 +0000 (21:03 +0000)
commitb9263570a59371126d3492f68853029a3f801fce
tree6f39477633795becc291be6ff616e552cbc67b65
parent4a5c8c602c68e727a0d560d68d6bf9463b2d3cc2
[opaque pointer type] Bitcode support for explicit type parameter on the gep operator

This happened to be fairly easy to support backwards compatibility based
on the number of operands (old format had an even number, new format has
one more operand so an odd number).

test/Bitcode/old-aliases.ll already appears to test old gep operators
(if I remove the backwards compatibility in the BitcodeReader, this and
another test fail) so I'm not adding extra test coverage here.

llvm-svn: 232216
llvm/include/llvm/IR/Operator.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp