summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-12-13 07:40:47 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-12-13 07:40:47 +0000
commit7a6d2e9ca1284bed62fc681faa6e980633e6aef2 (patch)
treef8e82693ecf7f1e1aebb6e2086c167a8bbe7f2cf /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentf8d180b808acffc0477e0b6173e73595c51dc7ce (diff)
downloadbcm5719-llvm-7a6d2e9ca1284bed62fc681faa6e980633e6aef2.tar.gz
bcm5719-llvm-7a6d2e9ca1284bed62fc681faa6e980633e6aef2.zip
Fix PR8774 by restricting when hasInit returns true. Previously, it
would return true if the initializer pointer union had *any* non-null pointer in it, even if the pointer wasn't one that would actually be returned via getInit(). This makes it more accurately model the logic of 'getInit() != NULL'. This still isn't completely satisfying. From a principled stance, I suspect we should make hasInit() and getInit() *always* return false and NULL (resp.) for ParmVarDecl. We shouldn't at the API level treat initializers and default arguments as the same thing. llvm-svn: 121692
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud