head 1.2; access; symbols pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2019.06.02.09.07.39; author adam; state dead; branches; next 1.1; commitid QJd09XkyBJBTRApB; 1.1 date 2018.12.12.12.44.43; author adam; state Exp; branches; next ; commitid Y9b5PRFKjw3hBv3B; desc @@ 1.2 log @creduce: updated to 2.10.0 No news is good news. @ text @$NetBSD: patch-clang__delta_RemoveUnusedEnumMember.cpp,v 1.1 2018/12/12 12:44:43 adam Exp $ Fix for LLVM 7.0. https://github.com/csmith-project/creduce/tree/llvm-7.0 --- clang_delta/RemoveUnusedEnumMember.cpp.orig 2018-12-12 12:36:01.000000000 +0000 +++ clang_delta/RemoveUnusedEnumMember.cpp @@@@ -99,15 +99,15 @@@@ void RemoveUnusedEnumMember::removeEnumC { SourceLocation StartLoc = (*TheEnumIterator)->getLocStart(); if (StartLoc.isMacroID()) { - std::pair Locs = + CharSourceRange CSRange = SrcManager->getExpansionRange(StartLoc); - StartLoc = Locs.first; + StartLoc = CSRange.getBegin(); } SourceLocation EndLoc = (*TheEnumIterator)->getLocEnd(); if (EndLoc.isMacroID()) { - std::pair Locs = + CharSourceRange CSRange = SrcManager->getExpansionRange(EndLoc); - EndLoc = Locs.second; + EndLoc = CSRange.getEnd(); } SourceLocation CommaLoc = Lexer::findLocationAfterToken( EndLoc, tok::comma, *SrcManager, Context->getLangOpts(), @ 1.1 log @creduce: fix for LLVM 7.0 @ text @d1 1 a1 1 $NetBSD$ @