From 2d9184a8830ca77800d3dba8a054dbe19475d8d3 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 15 Oct 2015 07:01:16 +0000 Subject: [PATCH] Update for llvm API change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250375 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Kaleidoscope/Chapter8/toy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/Kaleidoscope/Chapter8/toy.cpp b/examples/Kaleidoscope/Chapter8/toy.cpp index d58dadf08bb..7eaf16caa07 100644 --- a/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/examples/Kaleidoscope/Chapter8/toy.cpp @@ -848,8 +848,7 @@ static DISubroutineType *CreateFunctionType(unsigned NumArgs, DIFile *Unit) { for (unsigned i = 0, e = NumArgs; i != e; ++i) EltTys.push_back(DblTy); - return DBuilder->createSubroutineType(Unit, - DBuilder->getOrCreateTypeArray(EltTys)); + return DBuilder->createSubroutineType(DBuilder->getOrCreateTypeArray(EltTys)); } //===----------------------------------------------------------------------===//