mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IRGen] Eliminate calls to SILLocation() from IRGen.
Here, the location information does not have to always be available. Use Optional instead of creating an empty location. Swift SVN r8055
This commit is contained in:
@@ -32,7 +32,7 @@ IRGenFunction::IRGenFunction(IRGenModule &IGM,
|
||||
ExplosionKind explosionLevel,
|
||||
llvm::Function *Fn,
|
||||
SILDebugScope *DbgScope,
|
||||
SILLocation DbgLoc)
|
||||
Optional<SILLocation> DbgLoc)
|
||||
: IGM(IGM), Builder(IGM.getLLVMContext()),
|
||||
CurFn(Fn), CurExplosionLevel(explosionLevel),
|
||||
ContextPtr(nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user