summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-11-08 23:00:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-11-08 23:00:12 +0000
commitc56991755e6799f1f733d02f7a98d3159e94c185 (patch)
treeb00ac8e304394e1eb5b1f4d66194cf35b73306eb /lib/CodeGen/CGExpr.cpp
parent0171c6b348815df326a063c7e78eb81b7347fa25 (diff)
downloadclang-c56991755e6799f1f733d02f7a98d3159e94c185.tar.gz
clang-c56991755e6799f1f733d02f7a98d3159e94c185.tar.bz2
clang-c56991755e6799f1f733d02f7a98d3159e94c185.tar.xz
Remove an incorrect optimization inside Clang's IRGen. Its check to determine
whether we can safely lower a conditional operator to select was insufficient. I've left a large comment in place to explaining the sort of problems that this transform can encounter in clang in the hopes of discouraging others from reimplementing it wrongly again in the future. (The test should also help with that, but it's easy to work around any single test I might add and think that your particular implementation doesn't miscompile any code.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions