diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-08-03 00:43:35 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-08-03 00:43:35 +0000 |
commit | 50f4966ceb9026f8c50247fc24ba9f6458698613 (patch) | |
tree | f6fc6a2dadc509e320a554845a3607c6e4234f54 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ae3380faff2bc8b4d771f2b8036868e05e228935 (diff) | |
download | bcm5719-llvm-50f4966ceb9026f8c50247fc24ba9f6458698613.tar.gz bcm5719-llvm-50f4966ceb9026f8c50247fc24ba9f6458698613.zip |
Fix logical error when detecting lifetime intrinsics.
Don't replace a gep/bitcast with 'undef' because that will form a "free(undef)"
which in turn means "unreachable". What we wanted was a no-op. Instead, analyze
the whole tree and look for all the instructions we need to delete first, then
delete them second, not relying on the use_list to stay consistent.
llvm-svn: 136752
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions