summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-02-21 17:32:05 +0000
committerDuncan Sands <baldrick@free.fr>2011-02-21 17:32:05 +0000
commitecbbf0825b874c0605517f621adb8ee635a74ea1 (patch)
tree77e10333d67cdd4f139b2539a8a3bb4712b5aad8 /clang/lib/Parse/ParseDecl.cpp
parentf5bfc46c95a3a91efc27f811d13257b405b15a6f (diff)
downloadbcm5719-llvm-ecbbf0825b874c0605517f621adb8ee635a74ea1.tar.gz
bcm5719-llvm-ecbbf0825b874c0605517f621adb8ee635a74ea1.zip
If the phi node was used by an unreachable instruction that ends up using
itself without going via a phi node then we could return false here in spite of making a change. Also, tweak the comment because this method can (and always could) return true without deleting the original phi node. For example, if the phi node was used by a read-only invoke instruction which is used by another phi node phi2 which is only used by and only uses the invoke, then phi2 would be deleted but not the invoke instruction and not the original phi node. llvm-svn: 126129
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud