aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-09-14 15:37:48 +0000
committerJF Bastien <jfb@google.com>2015-09-14 15:37:48 +0000
commit26aca14b15e9e6915a89ba761c847e21a348f063 (patch)
tree1514bd73407ee18ed83350461a0f51fdc59e447d /clang/lib/CodeGen/CodeGenModule.cpp
parent056e67865a6c57b2afbab4e70369a6b862eedc20 (diff)
downloadllvm-26aca14b15e9e6915a89ba761c847e21a348f063.zip
llvm-26aca14b15e9e6915a89ba761c847e21a348f063.tar.gz
llvm-26aca14b15e9e6915a89ba761c847e21a348f063.tar.bz2
[MergeFuncs] Fix bug in merging GetElementPointers
GetElementPointers must have the first argument's type compared for structural equivalence. Previously the code erroneously compared the pointer's type, but this code was dead because all pointer types (of the same address space) are the same. The pointee must be compared instead (using the type stored in the GEP, not from the pointer type which will be erased anyway). Author: jrkoenig Reviewers: dschuff, nlewycky, jfb Subscribers: nlewycky, llvm-commits Differential revision: http://reviews.llvm.org/D12820 llvm-svn: 247570
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions