Commit aa1201a4 authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1725 from iovisor/yhs_dev

fix compilation error with latest llvm
parents 01c843e7 806627e3
...@@ -302,7 +302,11 @@ bool ProbeVisitor::IsContextMemberExpr(Expr *E) { ...@@ -302,7 +302,11 @@ bool ProbeVisitor::IsContextMemberExpr(Expr *E) {
SourceRange SourceRange
ProbeVisitor::expansionRange(SourceRange range) { ProbeVisitor::expansionRange(SourceRange range) {
#if LLVM_MAJOR_VERSION >= 7
return rewriter_.getSourceMgr().getExpansionRange(range).getAsRange();
#else
return rewriter_.getSourceMgr().getExpansionRange(range); return rewriter_.getSourceMgr().getExpansionRange(range);
#endif
} }
template <unsigned N> template <unsigned N>
...@@ -695,7 +699,11 @@ bool BTypeVisitor::VisitImplicitCastExpr(ImplicitCastExpr *E) { ...@@ -695,7 +699,11 @@ bool BTypeVisitor::VisitImplicitCastExpr(ImplicitCastExpr *E) {
SourceRange SourceRange
BTypeVisitor::expansionRange(SourceRange range) { BTypeVisitor::expansionRange(SourceRange range) {
#if LLVM_MAJOR_VERSION >= 7
return rewriter_.getSourceMgr().getExpansionRange(range).getAsRange();
#else
return rewriter_.getSourceMgr().getExpansionRange(range); return rewriter_.getSourceMgr().getExpansionRange(range);
#endif
} }
template <unsigned N> template <unsigned N>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment