summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-10-15 07:01:16 +0000
committerEric Christopher <echristo@gmail.com>2015-10-15 07:01:16 +0000
commit2d9184a8830ca77800d3dba8a054dbe19475d8d3 (patch)
tree4a6b2b463de4a29d5aa595591b0bcf41bf993db6 /examples
parent6f565c0e974e7b420697eba15c16095813ae3d67 (diff)
Update for llvm API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/Kaleidoscope/Chapter8/toy.cpp3
1 files changed, 1 insertions, 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));
}
//===----------------------------------------------------------------------===//