[opaque pointer type] Explicitly store the pointee type of the result of a GEP
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 1 Jun 2015 03:09:34 +0000 (03:09 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 1 Jun 2015 03:09:34 +0000 (03:09 +0000)
commitd84c8ef1be5c003e1d87414410560349cca2735c
tree4813ccf43fc8c34171a250f4242565cd6b616654
parentdd2e39c45320de89f87f075f468bb97ec5f10ac5
[opaque pointer type] Explicitly store the pointee type of the result of a GEP

Alternatively, this type could be derived on-demand whenever
getResultElementType is called - if someone thinks that's the better
choice (simple time/space tradeoff), I'm happy to give it a go.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238716 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp
lib/Transforms/Utils/ValueMapper.cpp