From 5e6456979b857b7e3e6dab8c356930242c722db7 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 13 Apr 2017 16:32:16 +0000 Subject: [PATCH] [DeLICM] Rename Knowledge to KnowledgeStr. NFC. Some debuggers get confused by different class of the same name defined independently in different translation units. llvm-svn: 300207 --- polly/unittests/DeLICM/DeLICMTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polly/unittests/DeLICM/DeLICMTest.cpp b/polly/unittests/DeLICM/DeLICMTest.cpp index f44e342f469a..a8712cc75b7f 100644 --- a/polly/unittests/DeLICM/DeLICMTest.cpp +++ b/polly/unittests/DeLICM/DeLICMTest.cpp @@ -49,7 +49,7 @@ typedef struct { const char *OccupiedStr; const char *UndefStr; const char *WrittenStr; -} Knowledge; +} KnowledgeStr; isl::union_set parseSetOrNull(isl_ctx *Ctx, const char *Str) { if (!Str) @@ -57,7 +57,8 @@ isl::union_set parseSetOrNull(isl_ctx *Ctx, const char *Str) { return isl::union_set(Ctx, Str); } -bool checkIsConflictingNonsymmetric(Knowledge Existing, Knowledge Proposed) { +bool checkIsConflictingNonsymmetric(KnowledgeStr Existing, + KnowledgeStr Proposed) { std::unique_ptr Ctx(isl_ctx_alloc(), &isl_ctx_free); @@ -127,7 +128,7 @@ bool checkIsConflictingNonsymmetric(Knowledge Existing, Knowledge Proposed) { return Result; } -bool checkIsConflicting(Knowledge Existing, Knowledge Proposed) { +bool checkIsConflicting(KnowledgeStr Existing, KnowledgeStr Proposed) { auto Forward = checkIsConflictingNonsymmetric(Existing, Proposed); auto Backward = checkIsConflictingNonsymmetric(Proposed, Existing);