summaryrefslogtreecommitdiff
path: root/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2013-11-26 16:11:03 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2013-11-26 16:11:03 +0000
commitdff57f19a14560e7ce9d5dbba17a62f1cb85021e (patch)
treeb41aec0d2fb2ba7883e3ae40a30f15896f550ee9 /lib/IR/DebugInfo.cpp
parent45ab4750de5729c2e80c7cfb0818b10f68263e35 (diff)
downloadllvm-dff57f19a14560e7ce9d5dbba17a62f1cb85021e.tar.gz
llvm-dff57f19a14560e7ce9d5dbba17a62f1cb85021e.tar.bz2
llvm-dff57f19a14560e7ce9d5dbba17a62f1cb85021e.tar.xz
PR17925 bugfix.
Short description. This issue is about case of treating pointers as integers. We treat pointers as different if they references different address space. At the same time, we treat pointers equal to integers (with machine address width). It was a point of false-positive. Consider next case on 32bit machine: void foo0(i32 addrespace(1)* %p) void foo1(i32 addrespace(2)* %p) void foo2(i32 %p) foo0 != foo1, while foo1 == foo2 and foo0 == foo2. As you can see it breaks transitivity. That means that result depends on order of how functions are presented in module. Next order causes merging of foo0 and foo1: foo2, foo0, foo1 First foo0 will be merged with foo2, foo0 will be erased. Second foo1 will be merged with foo2. Depending on order, things could be merged we don't expect to. The fix: Forbid to treat any pointer as integer, except for those, who belong to address space 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions