[PATCH] D155402: [Bindings] Remove duplicate declaration

Tamir Duberstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 16 05:24:35 PDT 2023


tamird created this revision.
Herald added a reviewer: deadalnix.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
tamird requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

a27771b62f2f8c399ed8fac124810a273226d5d5 moved
LLVMAddInstructionCombiningPass but neglected to remove the previous
declaration, resulting in a duplicate.

This is harmless in C, but can cause problems downstream if e.g. code is
generated from these bindings.

This function is removed on master, so this commit is made against
release/16.x.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155402

Files:
  llvm/include/llvm-c/Transforms/Scalar.h


Index: llvm/include/llvm-c/Transforms/Scalar.h
===================================================================
--- llvm/include/llvm-c/Transforms/Scalar.h
+++ llvm/include/llvm-c/Transforms/Scalar.h
@@ -64,9 +64,6 @@
 /** See llvm::createIndVarSimplifyPass function. */
 void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM);
 
-/** See llvm::createInstructionCombiningPass function. */
-void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM);
-
 /** See llvm::createInstSimplifyLegacyPass function. */
 void LLVMAddInstructionSimplifyPass(LLVMPassManagerRef PM);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155402.540793.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230716/1d0a3742/attachment.bin>


More information about the llvm-commits mailing list