aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2015-02-13 04:51:26 +0000
committerMichael Liao <michael.liao@intel.com>2015-02-13 04:51:26 +0000
commitd266b928aee8ca677857a8d53d194ffbef8a3cba (patch)
tree57881529ab78c37a5a4e2251ea9e4bceaad18d55 /clang/lib/Frontend/CompilerInvocation.cpp
parent6c03dff7cc30f2b546bd52d73aad635223e2bd3d (diff)
downloadllvm-d266b928aee8ca677857a8d53d194ffbef8a3cba.zip
llvm-d266b928aee8ca677857a8d53d194ffbef8a3cba.tar.gz
llvm-d266b928aee8ca677857a8d53d194ffbef8a3cba.tar.bz2
[InstCombine] Fix a bug when combining `icmp` from `ptrtoint`
- First, there's a crash when we try to combine that pointers into `icmp` directly by creating a `bitcast`, which is invalid if that two pointers are from different address spaces. - It's not always appropriate to cast one pointer to another if they are from different address spaces as that is not no-op cast. Instead, we only combine `icmp` from `ptrtoint` if that two pointers are of the same address space. llvm-svn: 229063
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions