From 6fd2a83a5c3f2d62ef23e32cdf445a36aeff8c2f Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 5 Oct 2012 14:03:29 +0000 Subject: [PATCH] Revert previous change which broke cling's testsuite. The issue that was addressing the previous commit will be fixed with the upcoming changes anyway. git-svn-id: http://root.cern.ch/svn/root/trunk@46345 27541ba8-7e3a-0410-8455-c3a389f83636 --- lib/Interpreter/DynamicLookup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();