[all-commits] [llvm/llvm-project] 0e43f3: [ORC][ORC-RT] Make WrapperFunctionCall::Create sup...

lhames via All-commits all-commits at lists.llvm.org
Sun Sep 18 18:02:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e43f3b04d527776458df7aa1d7ce1787ff0b32f
      https://github.com/llvm/llvm-project/commit/0e43f3b04d527776458df7aa1d7ce1787ff0b32f
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
    M compiler-rt/lib/orc/wrapper_function_utils.h
    M llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
    M llvm/unittests/ExecutionEngine/Orc/WrapperFunctionUtilsTest.cpp

  Log Message:
  -----------
  [ORC][ORC-RT] Make WrapperFunctionCall::Create support void functions.

Serialized calls to void-wrapper-functions should have zero bytes of argument
data, but accessing ArgData[0] may (and will, in the case of SmallVector) fail
if the argument data buffer is empty.

This commit fixes the issue by adding a check for empty argument buffers.




More information about the All-commits mailing list