Follow llvm interface changes.

This commit is contained in:
Vassil Vassilev 2014-06-27 16:21:13 +02:00 committed by sftnight
parent 20c6cd6fae
commit 7c83ac9c44
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,8 @@ CLINGETC_CLING := DynamicExprInfo.h DynamicLookupRuntimeUniverse.h \
CLINGETC_LLVM := llvm/ADT/IntrusiveRefCntPtr.h \
llvm/ADT/OwningPtr.h \
llvm/ADT/StringRef.h \
llvm/ADT/SmallVector.h \
llvm/ADT/iterator_range.h \
llvm/Config/llvm-config.h \
llvm/Support/AlignOf.h \
llvm/Support/Allocator.h \
@ -33,7 +35,9 @@ CLINGETC_LLVM := llvm/ADT/IntrusiveRefCntPtr.h \
llvm/Support/Compiler.h \
llvm/Support/DataTypes.h \
llvm/Support/MathExtras.h \
llvm/Support/Memory.h \
llvm/Support/SwapByteOrder.h \
llvm/Support/system_error.h \
llvm/Support/type_traits.h
CLINGETCPCH := $(addprefix etc/cling/Interpreter/,$(CLINGETC_CLING)) \

View File

@ -236,7 +236,8 @@ namespace cling {
= IntegerLiteral::Create(*m_Context, ZeroInt, m_Context->IntTy,
SourceLocation());
Stmts.push_back(m_Sema->ActOnReturnStmt(ZeroLit->getExprLoc(),
ZeroLit, /*Scope*/0).get());
ZeroLit,
m_Sema->getCurScope()).get());
}
// Wrap Stmts into a function body.