[all-commits] [llvm/llvm-project] 2f53fc: Fix compilation errors in C API when using C compiler
Ben Langmuir via All-commits
all-commits at lists.llvm.org
Tue Aug 24 10:13:38 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f53fcc831e2f5ceee0d42c41766d9231049e46b
https://github.com/llvm/llvm-project/commit/2f53fcc831e2f5ceee0d42c41766d9231049e46b
Author: Ben Langmuir <blangmuir at apple.com>
Date: 2021-08-24 (Tue, 24 Aug 2021)
Changed paths:
M compiler-rt/lib/orc/c_api.h
M llvm/include/llvm-c/Transforms/PassBuilder.h
Log Message:
-----------
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.
More information about the All-commits
mailing list