Skip to content

Commit f3f2912

Browse files
committed
Fix building on LLVM 12
1 parent 196ce23 commit f3f2912

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/clang_utils.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ std::string to_string(
166166
clang::PrintingPolicy policy(context.getLangOpts());
167167

168168
const clang::TemplateArgument &arg = argLoc.getArgument();
169+
170+
#if LLVM_VERSION_MAJOR > 18
169171
arg.print(policy, stream, false);
172+
#else
173+
arg.dump(stream);
174+
#endif
175+
170176
stream.flush();
171177

172178
return result;

0 commit comments

Comments
 (0)