[all-commits] [llvm/llvm-project] a465f0: [AttrBuilder] Assert correct attribute kind

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jul 20 12:16:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a465f07cf99b3cc210f4c2a7691dd5027857f117
      https://github.com/llvm/llvm-project/commit/a465f07cf99b3cc210f4c2a7691dd5027857f117
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h

  Log Message:
  -----------
  [AttrBuilder] Assert correct attribute kind

Make sure that addAttribute() is only used with simple enum
attributes. Integer and type attributes need to provide an
additional value/type.




More information about the All-commits mailing list