summaryrefslogtreecommitdiff
path: root/devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp')
-rw-r--r--devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp b/devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp
new file mode 100644
index 00000000000..29fb5c17e18
--- /dev/null
+++ b/devel/creduce/patches/patch-clang__delta_SimplifyNestedClass.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-clang__delta_SimplifyNestedClass.cpp,v 1.1 2016/11/20 22:14:07 joerg Exp $
+
+--- clang_delta/SimplifyNestedClass.cpp.orig 2016-11-19 11:31:59.000000000 +0000
++++ clang_delta/SimplifyNestedClass.cpp
+@@ -140,7 +140,7 @@ void SimplifyNestedClass::removeOuterCla
+ LocEnd = LocEnd.getLocWithOffset(-1);
+ TheRewriter.RemoveText(SourceRange(LocStart, LocEnd));
+
+- LocStart = TheBaseCXXRD->getRBraceLoc();
++ LocStart = TheBaseCXXRD->getBraceRange().getEnd();
+ LocEnd = RewriteHelper->getLocationUntil(LocStart, ';');
+ if (LocStart.isInvalid() || LocEnd.isInvalid())
+ return;