Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 938172a

Browse files
committed
[LLVM-C] Fix name mangling on AggressiveInstCombine
Similarly to rL336736, at least one more C API function does not properly get declared as extern "C" due to a missing header, causing name mangling and linking errors. This patch fixes calls to LLVMAddAggressiveInstCombinerPass(). Differential Revision: https://reviews.llvm.org/D49416 Reviewed By: whitequark git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337264 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 1907eb8 commit 938172a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h"
1717
#include "AggressiveInstCombineInternal.h"
1818
#include "llvm-c/Initialization.h"
19+
#include "llvm-c/Transforms/Scalar.h"
1920
#include "llvm/Analysis/AliasAnalysis.h"
2021
#include "llvm/Analysis/BasicAliasAnalysis.h"
2122
#include "llvm/Analysis/GlobalsModRef.h"

0 commit comments

Comments
 (0)