Silence unused variable warning in CIndex.cpp with NDEBUG

llvm-svn: 201276
This commit is contained in:
Reid Kleckner 2014-02-12 23:56:20 +00:00
parent 883b5add8e
commit fd48fc6d33
1 changed files with 1 additions and 0 deletions

View File

@ -2611,6 +2611,7 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx,
CXTranslationUnit TU;
enum CXErrorCode Result =
clang_createTranslationUnit2(CIdx, ast_filename, &TU);
(void)Result;
assert((TU && Result == CXError_Success) ||
(!TU && Result != CXError_Success));
return TU;