summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2014-07-22 01:54:49 +0000
committerSerge Pavlov <sepavloff@gmail.com>2014-07-22 01:54:49 +0000
commitb4b3578af7d013f5fe4f4bb323bc52bc2991ae33 (patch)
tree9dee5bba1b1f8b11e4ab3ab09a3a33178226c2bd /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parent1a711b169619e1109cb9affed650f8f12ae85f6e (diff)
downloadbcm5719-llvm-b4b3578af7d013f5fe4f4bb323bc52bc2991ae33.tar.gz
bcm5719-llvm-b4b3578af7d013f5fe4f4bb323bc52bc2991ae33.zip
Avoid crash if default argument parsed with errors.
If function parameters have default values, and that of the second parameter is parsed with errors, function declaration would have a parameter without default value that follows a parameter with that. Such declaration breaks logic of selecting overloaded function. As a solution, put opaque object as default value in such case. This patch fixes PR20055. Differential Revision: http://reviews.llvm.org/D4378 llvm-svn: 213594
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud