]> granicus.if.org Git - clang/commit
When calling the cleanup function specified by __attribute__((cleanup)), make sure...
authorAnders Carlsson <andersca@mac.com>
Sun, 26 Apr 2009 00:34:20 +0000 (00:34 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 26 Apr 2009 00:34:20 +0000 (00:34 +0000)
commitcabec03f5d1aa3bb7b5c99867c5e75f38452afab
tree43ceae32831b8a43172a0d24bec71174ed4ac6ff
parent2eafc1b56347f772729e082e6bac824b0ef1b585
When calling the cleanup function specified by __attribute__((cleanup)), make sure to bitcast the argument so it has the same type as the first argument of the cleanup function. Fixes <rdar://problem/6827047>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
test/CodeGen/attr-cleanup.c [new file with mode: 0644]