[all-commits] [llvm/llvm-project] d260a1: [clang] Fix crash during template sema checking

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Sat Mar 21 04:42:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d260a10d98dff6e34d081e570df1f7c0a50b9a73
      https://github.com/llvm/llvm-project/commit/d260a10d98dff6e34d081e570df1f7c0a50b9a73
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2020-03-21 (Sat, 21 Mar 2020)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    R clang/test/Sema/builtins-memcpy-inline.c
    A clang/test/Sema/builtins-memcpy-inline.cpp

  Log Message:
  -----------
  [clang] Fix crash during template sema checking

Summary: If the size parameter of `__builtin_memcpy_inline` comes from an un-instantiated template parameter current code would crash.

Reviewers: efriedma, courbet

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list