summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-09-14 01:16:54 +0000
committerNico Weber <nicolasweber@gmx.de>2016-09-14 01:16:54 +0000
commitd58c26090d10489747f5b8699692791b1111c81d (patch)
tree36c2bedb81fbe396c2788748c0eb4cc0b4f6aae8 /clang/lib
parent1c16d1b576bc215fa116a025efa4fca7090d6b5c (diff)
downloadbcm5719-llvm-d58c26090d10489747f5b8699692791b1111c81d.tar.gz
bcm5719-llvm-d58c26090d10489747f5b8699692791b1111c81d.zip
Follow-up to r281367: Compare uuids case-insensitively.
llvm-svn: 281430
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index c23db571415..a0c0e81d7ea 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -4607,7 +4607,7 @@ static void handleObjCPreciseLifetimeAttr(Sema &S, Decl *D,
UuidAttr *Sema::mergeUuidAttr(Decl *D, SourceRange Range,
unsigned AttrSpellingListIndex, StringRef Uuid) {
if (const auto *UA = D->getAttr<UuidAttr>()) {
- if (UA->getGuid() == Uuid)
+ if (UA->getGuid().equals_lower(Uuid))
return nullptr;
Diag(UA->getLocation(), diag::err_mismatched_uuid);
Diag(Range.getBegin(), diag::note_previous_uuid);
OpenPOWER on IntegriCloud