From 4d81523a32cc528aa5402b2a5050e69a23ce4ef0 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Wed, 20 Aug 2014 12:27:29 +0200 Subject: [PATCH] interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp #include definition of new[] with ASTCtx placement. --- interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp b/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp index b04ab3f..e492ca0 100644 --- a/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp +++ b/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp @@ -12,6 +12,7 @@ #include "cling/Interpreter/Transaction.h" #include "clang/AST/DeclVisitor.h" +#include "clang/AST/ASTContext.h" using namespace clang; @@ -30,8 +31,7 @@ namespace cling { StringRef str = ED->getAttr()->getAnnotation(); char ch = str.back(); str.drop_back(2); - // Missing new[](...) - see clang bug # {yet to come}. - // ED->getAttr()->setAnnotation(ED->getASTContext(), str); + ED->getAttr()->setAnnotation(ED->getASTContext(), str); struct EnumDeclDerived: public EnumDecl { static void setFixed(EnumDecl* ED, bool value = true) { ((EnumDeclDerived*)ED)->IsFixed = value; -- 1.8.2