]> granicus.if.org Git - clang/commit
[CodeGen] Fix assertion failure in EmitCallArg.
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 28 Jun 2017 00:42:48 +0000 (00:42 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 28 Jun 2017 00:42:48 +0000 (00:42 +0000)
commitafd3b93fc835d07303f8880c091dbd5306f5fb9c
treed6eb86d80a829d82790e6b1c11227dc72d7aa431
parent5b7d7d2b2d0bd7054f51b9d108cdd5299a0ec33e
[CodeGen] Fix assertion failure in EmitCallArg.

The assertion was failing when a method of a parameterized class was
called and the types of the argument and parameter didn't match. To fix
the failure, move the assertion in EmitCallArg to its only caller
EmitCallArgs and require the argument and parameter types match only
when the method is not parameterized.

rdar://problem/32874473

Differential Revision: https://reviews.llvm.org/D34665

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306494 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGenObjC/parameterized_classes.m