From: Craig Topper Date: Sat, 26 Sep 2015 05:10:14 +0000 (+0000) Subject: Fix a couple other places that were returning SourceLocation by reference. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bba9558b8eecfdf26716991dc54e89134df201f;p=clang Fix a couple other places that were returning SourceLocation by reference. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248658 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CoverageMappingGen.cpp b/lib/CodeGen/CoverageMappingGen.cpp index 90e45a011c..337479e06d 100644 --- a/lib/CodeGen/CoverageMappingGen.cpp +++ b/lib/CodeGen/CoverageMappingGen.cpp @@ -66,7 +66,7 @@ public: void setStartLoc(SourceLocation Loc) { LocStart = Loc; } - const SourceLocation &getStartLoc() const { + SourceLocation getStartLoc() const { assert(LocStart && "Region has no start location"); return *LocStart; } @@ -75,7 +75,7 @@ public: void setEndLoc(SourceLocation Loc) { LocEnd = Loc; } - const SourceLocation &getEndLoc() const { + SourceLocation getEndLoc() const { assert(LocEnd && "Region has no end location"); return *LocEnd; }