]> granicus.if.org Git - clang/commit
Avoid getting an argument of allocation function if it does not exist.
authorSerge Pavlov <sepavloff@gmail.com>
Sat, 14 Sep 2013 12:00:01 +0000 (12:00 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Sat, 14 Sep 2013 12:00:01 +0000 (12:00 +0000)
commit3225b9c9b35056f15b967bda1f1d8a3ca1680a42
treef3cf05e9e29e4eb6cc54f19f8893a1d27971191b
parentd3d9e0f4a107e97b493e1d4c7c5b5dc15e7e137a
Avoid getting an argument of allocation function if it does not exist.
This is a fix to PR12778: in erroneous code an allocation function
can be declared with no arguments, quering the first argument in this case
causes assertion violation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190751 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/PR12778.cpp [new file with mode: 0644]