Fix build with assertions
Fixes commit 68769cd980 ("[cling] Move parts of Parse to another function").
This commit is contained in:
parent
be35aaef26
commit
65a2a778d1
@ -976,11 +976,15 @@ namespace cling {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CO.CodeCompletionOffset != -1) {
|
if (CO.CodeCompletionOffset != -1) {
|
||||||
|
#ifndef NDEBUG
|
||||||
|
Preprocessor& PP = m_CI->getPreprocessor();
|
||||||
|
SourceManager& SM = getCI()->getSourceManager();
|
||||||
assert((int)SM.getFileOffset(PP.getCodeCompletionLoc())
|
assert((int)SM.getFileOffset(PP.getCodeCompletionLoc())
|
||||||
== CO.CodeCompletionOffset
|
== CO.CodeCompletionOffset
|
||||||
&& "Completion point wrongly set!");
|
&& "Completion point wrongly set!");
|
||||||
assert(PP.isCodeCompletionReached()
|
assert(PP.isCodeCompletionReached()
|
||||||
&& "Code completion set but not reached!");
|
&& "Code completion set but not reached!");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Let's ignore this transaction:
|
// Let's ignore this transaction:
|
||||||
m_Consumer->getTransaction()->setIssuedDiags(Transaction::kErrors);
|
m_Consumer->getTransaction()->setIssuedDiags(Transaction::kErrors);
|
||||||
|
Loading…
Reference in New Issue
Block a user