aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2015-05-18 19:59:11 +0000
committerIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2015-05-18 19:59:11 +0000
commite5768d1717a354531f00062fdaf5d1dfbbedf12b (patch)
tree22c0dc5782308e6e284428b877eff0e386fb3f6a /clang/lib/CodeGen/CodeGenFunction.cpp
parent1d4911bc994789169594be634ae158966fc41cfb (diff)
downloadllvm-e5768d1717a354531f00062fdaf5d1dfbbedf12b.zip
llvm-e5768d1717a354531f00062fdaf5d1dfbbedf12b.tar.gz
llvm-e5768d1717a354531f00062fdaf5d1dfbbedf12b.tar.bz2
Detect uses of mismatching forms of 'new' and 'delete'
Emit warning when operand to `delete` is allocated with `new[]` or operand to `delete[]` is allocated with `new`. rev 2 update: `getNewExprFromInitListOrExpr` should return `dyn_cast_or_null` instead of `dyn_cast`, since `E` might be null. Reviewers: rtrieu, jordan_rose, rsmith Subscribers: majnemer, cfe-commits Differential Revision: http://reviews.llvm.org/D4661 llvm-svn: 237608
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions