[all-commits] [llvm/llvm-project] 1ba6fb: [clang] Fix a crash when passing a C structure of ...
Bruno Ricci via All-commits
all-commits at lists.llvm.org
Wed Jul 8 09:01:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1ba6fb9293967de21ae33be10603bf5ae0ce1c96
https://github.com/llvm/llvm-project/commit/1ba6fb9293967de21ae33be10603bf5ae0ce1c96
Author: Aleksandr Platonov <platonov.aleksandr at huawei.com>
Date: 2020-07-08 (Wed, 08 Jul 2020)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
A clang/test/Sema/init-ref-c.c
Log Message:
-----------
[clang] Fix a crash when passing a C structure of incompatible type to a function with a reference parameter.
__builtin_va_*() and __builtin_ms_va_*() are declared as functions with a
parameter of reference type.
This patch fixes a crash when using these functions in C where an argument
of structure type is incompatible with the parameter type.
Differential Revision: https://reviews.llvm.org/D82805
Reviewed By: riccibruno
Patch by: Aleksandr Platonov <platonov.aleksandr at huawei.com>
More information about the All-commits
mailing list