[all-commits] [llvm/llvm-project] 6a28d3: [FuzzMutate] Avoid calling function with metadata/...

Henry Yu via All-commits all-commits at lists.llvm.org
Thu Jun 1 14:00:00 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a28d3c21d3a39e5a423cf0dd578d6d7ed6b9301
  Author: Henry Yu <hnryu at ucdavis.edu>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/FuzzMutate/IRMutator.cpp
    M llvm/unittests/FuzzMutate/StrategiesTest.cpp

  Log Message:
  [FuzzMutate] Avoid calling function with metadata/token parameter/return type for `InsertFunctionStrategy`

When there is a function with metadata/token parameter/return type, `InsertFunctionStrategy` will crash.

This patch fixes the problem by falling back to create function declaration when the sampled function contains metadata/token parameter/return type.

Reviewed By: Peter

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

More information about the All-commits mailing list