[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)
commit1f48a55e869c9cea1f5b91a56261ce6ade0dd7e2
tree7e324b74221ccb28c5896b0195e31ac3bbdd3697
parent75cc2505da498a396038d27665ba711db9360679
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232216 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Operator.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp