r248658 - Fix a couple other places that were returning SourceLocation by reference. NFC

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 22:10:14 PDT 2015


Author: ctopper
Date: Sat Sep 26 00:10:14 2015
New Revision: 248658

URL: http://llvm.org/viewvc/llvm-project?rev=248658&view=rev
Log:
Fix a couple other places that were returning SourceLocation by reference. NFC

Modified:
    cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp

Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=248658&r1=248657&r2=248658&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Sat Sep 26 00:10:14 2015
@@ -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;
   }




More information about the cfe-commits mailing list