From f2dcad27bbf969b47c320030c3d5bcf3c2f83d8d Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Tue, 12 Mar 2013 21:13:08 +0400 Subject: [PATCH] Fix for LLVM 3.1 and #441 --- module.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module.cpp b/module.cpp index e05f83e6..9e4defb8 100644 --- a/module.cpp +++ b/module.cpp @@ -1897,7 +1897,11 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre } } +#if defined(LLVM_3_1) + inst.getLangOpts().BCPLComment = 1; +#else inst.getLangOpts().LineComment = 1; +#endif inst.createPreprocessor(); diagPrinter->BeginSourceFile(inst.getLangOpts(), &inst.getPreprocessor());