[all-commits] [llvm/llvm-project] 1f451a: [clang] initialize type qualifiers for FunctionNoP...

Richard Howell via All-commits all-commits at lists.llvm.org
Mon Sep 26 09:49:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f451a8bd6f32465b6ff26c30ba7fb6fc7e0e689
      https://github.com/llvm/llvm-project/commit/1f451a8bd6f32465b6ff26c30ba7fb6fc7e0e689
  Author: Richard Howell <rhow at fb.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/unittests/AST/DeclTest.cpp

  Log Message:
  -----------
  [clang] initialize type qualifiers for FunctionNoProtoType

When initializing FunctionNoProtoType types, zero out the type
qualifiers. This will ensure the ODR hash remains stable as it
hashes the values for these qualifiers for all function types.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list