r201249 - libclang: report error code for bad PCH files

Dmitri Gribenko gribozavr at gmail.com
Thu Feb 13 08:57:42 PST 2014


On Thu, Feb 13, 2014 at 2:31 PM, Daniel Jasper <djasper at google.com> wrote:
>
> On Wed, Feb 12, 2014 at 8:12 PM, Dmitri Gribenko <gribozavr at gmail.com>
> wrote:
>> +  CXTranslationUnit TU;
>> +  enum CXErrorCode Result =
>> +      clang_createTranslationUnit2(CIdx, ast_filename, &TU);
>> +  assert((TU && Result == CXError_Success) ||
>> +         (!TU && Result != CXError_Success));
>
> This triggers on one of our internal tests. I have submitted r201329, which
> kind of papers over the underlying cause. Can you take a look? If the fix is
> not obvious, I am happy to look into this further.

Thanks!  Hopefully fixed this in r201346.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list