From 82493289e0234e0172313e845fb87306cf3687ac Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 May 2007 18:32:10 +0000 Subject: This is a patch to fix a compile error in STLExtras.h, and a bug in GraphWriter.cpp. Patch by Florian Brandner git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36684 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/STLExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index af49965..14137e3 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -71,7 +71,7 @@ public: typedef RootIt iterator_type; typedef mapped_iterator _Self; - inline RootIt &getCurrent() const { return current; } + inline const RootIt &getCurrent() const { return current; } inline explicit mapped_iterator(const RootIt &I, UnaryFunc F) : current(I), Fn(F) {} -- cgit v1.1