Skip to content

Commit c3ba8ff

Browse files
committed
[DebugInfo] Remove a default location argument from setCurrentLoc
Having a default location of None doesn't seem to enhance readability.
1 parent 015ceef commit c3ba8ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
125125
void finalize();
126126

127127
void setCurrentLoc(IRBuilder &Builder, const SILDebugScope *DS,
128-
Optional<SILLocation> Loc = None);
128+
Optional<SILLocation> Loc);
129129
void clearLoc(IRBuilder &Builder);
130130
void pushLoc();
131131
void popLoc();

lib/IRGen/IRGenDebugInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class IRGenDebugInfo {
5757
/// Update the IRBuilder's current debug location to the location
5858
/// Loc and the lexical scope DS.
5959
void setCurrentLoc(IRBuilder &Builder, const SILDebugScope *DS,
60-
Optional<SILLocation> Loc = None);
60+
Optional<SILLocation> Loc);
6161

6262
void clearLoc(IRBuilder &Builder);
6363

lib/IRGen/IRGenSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ void IRGenSILFunction::visitSILBasicBlock(SILBasicBlock *BB) {
17901790
if (Prev != BB->end())
17911791
DS = Prev->getDebugScope();
17921792
// Use an artificial (line 0) location.
1793-
IGM.DebugInfo->setCurrentLoc(Builder, DS);
1793+
IGM.DebugInfo->setCurrentLoc(Builder, DS, None);
17941794
}
17951795

17961796
if (isa<TermInst>(&I))

0 commit comments

Comments
 (0)