]> granicus.if.org Git - clang/commit
For setting attributes, don't assume there are ParamVarDecls available,
authorEli Friedman <eli.friedman@gmail.com>
Wed, 4 Jun 2008 19:41:28 +0000 (19:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 4 Jun 2008 19:41:28 +0000 (19:41 +0000)
commitc134fcb0d7989fe6937e47e6216637647e074aef
tree22366d131801a7ed45f48d224e0d2c349bfef550
parent108f55d6fd9a1c0e753eb8e046cb1f1b81d77a76
For setting attributes, don't assume there are ParamVarDecls available,
because trying to access non-existent ParamVarDecls can crash.
Testcase from the original source for PR2414.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51960 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/typedef-func.c