summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-05-03 00:14:49 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-05-03 00:14:49 +0000
commit7d8668288ada75837138375497467172efe10c37 (patch)
tree076bc061fc72af55ef7b5009f86e8b5d60f15b3c /clang/lib/Sema/SemaDecl.cpp
parent6a56c37b952434df6d549e88f77db06272b33e63 (diff)
downloadbcm5719-llvm-7d8668288ada75837138375497467172efe10c37.tar.gz
bcm5719-llvm-7d8668288ada75837138375497467172efe10c37.zip
[leaks] Fix a leak of a basic block when we successfully fold a switch
condition to a constant and emit only the relevant statement. In that case, we were previously creating the epilog jump destination, a cleanup scope, and emitting any condition variable into it. Instead, we can emit the condition variable (if we have one) into the cleanup scope used for the entire folded case sequence. We avoid creating a jump dest, a basic block, and an extra cleanup scope. Win! llvm-svn: 207888
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud