From 73f00412f7432982b4c70e8f7491f088c7a1cd42 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. llvm-svn: 250375 --- llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index d58dadf08bb6..7eaf16caa075 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/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)); } //===----------------------------------------------------------------------===//