summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2017-11-29 05:51:26 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2017-11-29 05:51:26 +0000
commit5036459ae30920a4c5d34baa9d246f8a61ccbfe6 (patch)
tree9002c0a90f9faf1b915c1beeb3a68d326c0bf621 /clang/lib/Frontend/InitPreprocessor.cpp
parent0010707e1c0181dccbea5e8f352a4e5fc126ed12 (diff)
downloadbcm5719-llvm-5036459ae30920a4c5d34baa9d246f8a61ccbfe6.tar.gz
bcm5719-llvm-5036459ae30920a4c5d34baa9d246f8a61ccbfe6.zip
[CGP] Fix common type handling in optimizeMemoryInst
If common type is different we should bail out due to we will not be able to create a select or Phi of these values. Basically it is done in ExtAddrMode::compare however it does not work if we handle the null first and then two values of different types. so add a check in initializeMap as well. The check in ExtAddrMode::compare is used as earlier bail out. Reviewers: reames, john.brawn Reviewed By: john.brawn Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D40479 llvm-svn: 319292
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud