[cfe-dev] LLVM : failure on output stream

madil90 madil90 at gmail.com
Fri Feb 8 13:44:36 PST 2013


Hi,
   I am creating a custom PreprocessorFrontendAction. In my ExecuteAction
function, I am using the following code:

CompilerInstance &CI = getCompilerInstance();
raw_ostream *OS = CI.createDefaultOutputFile(true, getCurrentFile());
if (!OS) return;

    This is resulting into the following error : " LLVM Error: IO failure on
output stream". When I run clang on a code using "-frewriter-includes", it
doesn't result in any error. The above code is taken directly from the
source code of RewriteIncludeAction. Why is it giving an error? How can it
be resolved (it's working using clang's -frewrite-include command)

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/LLVM-failure-on-output-stream-tp4030383.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list