summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-02-17 19:43:45 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-02-17 19:43:45 +0000
commit184773d81febbf1428aa98498beef844ce0d142f (patch)
tree3c6eaaede8823cd5258087c637a2b109cf52bef7 /clang/lib/CodeGen/CodeGenFunction.cpp
parent67c24422108812bb011558f4206ee053e32c1fc1 (diff)
downloadbcm5719-llvm-184773d81febbf1428aa98498beef844ce0d142f.tar.gz
bcm5719-llvm-184773d81febbf1428aa98498beef844ce0d142f.zip
WholeProgramDevirt: For VCP use a 32-bit ConstantInt for the byte offset.
A future change will cause this byte offset to be inttoptr'd and then exported via an absolute symbol. On the importing end we will expect the symbol to be in range [0,2^32) so that it will fit into a 32-bit relocation. The problem is that on 64-bit architectures if the offset is negative it will not be in the correct range once we inttoptr it. This change causes us to use a 32-bit integer so that it can be inttoptr'd (which zero extends) into the correct range. Differential Revision: https://reviews.llvm.org/D30016 llvm-svn: 295487
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud