diff --git a/lib/Interpreter/DynamicLookup.cpp b/lib/Interpreter/DynamicLookup.cpp index 4e7221b1..61f695c0 100644 --- a/lib/Interpreter/DynamicLookup.cpp +++ b/lib/Interpreter/DynamicLookup.cpp @@ -31,14 +31,14 @@ namespace cling { bool DynamicIDHandler::LookupUnqualified(LookupResult& R, Scope* S) { + if (!IsDynamicLookup(R, S)) + return false; + InterpreterCallbacks* callbacks = m_Interpreter->getCallbacks(); if (callbacks && callbacks->isEnabled()) { return callbacks->LookupObject(R, S); } - if (!IsDynamicLookup(R, S)) - return false; - DeclarationName Name = R.getLookupName(); IdentifierInfo* II = Name.getAsIdentifierInfo(); SourceLocation Loc = R.getNameLoc();