Skip to content

Commit

Permalink
Fix building llvm_ext.cc with LLVM < 3.8 (Ref #4501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff committed Jun 25, 2017
1 parent e92d280 commit c6e2077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/llvm/ext/llvm_ext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ template <typename T> T *unwrapDIptr(LLVMMetadataRef v) {
}
#endif /* LLVM <= 3.6 */

#if LLVM_VERSION_LE(3, 6)
#define OperandBundleDef void
#endif

#define DIDescriptor DIScope
#define unwrapDI unwrapDIptr
Expand Down

0 comments on commit c6e2077

Please sign in to comment.