Fix compilation errors in C API when using C compiler
authorBen Langmuir <blangmuir@apple.com>
Thu, 12 Aug 2021 20:55:16 +0000 (13:55 -0700)
committerBen Langmuir <blangmuir@apple.com>
Tue, 24 Aug 2021 17:12:32 +0000 (10:12 -0700)
commit2f53fcc831e2f5ceee0d42c41766d9231049e46b
tree35bfa89ddd7dd73ab1feaa2f161d938497625b02
parentb109becdce12b353e09dab3995408ddfa1e30bd7
Fix compilation errors in C API when using C compiler

* Cannot use sizeof() on another union member
* nullptr vs NULL
* () vs (void)

Incidentally, fix an incorrect comment about memory ownership on the
argument to __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError,
which is copied, not moved.
compiler-rt/lib/orc/c_api.h
llvm/include/llvm-c/Transforms/PassBuilder.h