aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineLoopInfo.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-11 18:47:13 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-11 18:47:13 +0000
commite35fdeb330b436c94298bb22564baabe1fb7f60a (patch)
tree966a23e5b1bb8c074ef44a0d261958787c9afecf /llvm/lib/CodeGen/MachineLoopInfo.cpp
parent93cddf3cdc23ae60abc97fc8841141c21d996248 (diff)
downloadllvm-e35fdeb330b436c94298bb22564baabe1fb7f60a.zip
llvm-e35fdeb330b436c94298bb22564baabe1fb7f60a.tar.gz
llvm-e35fdeb330b436c94298bb22564baabe1fb7f60a.tar.bz2
[analyzer] Use the static type for a virtual call if the dynamic type is worse.
reinterpret_cast does not provide any of the usual type information that static_cast or dynamic_cast provide -- only the new type. This can get us in a situation where the dynamic type info for an object is actually a superclass of the static type, which does not match what CodeGen does at all. In these cases, just fall back to the static type as the best possible type for devirtualization. Should fix the crashes on our internal buildbot. llvm-svn: 163644
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions