diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5e5caf370de..b6cf2f91460 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -68,7 +68,7 @@ NoLocation::~NoLocation() { } } -BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B) +ArtificialLocation::ArtificialLocation(CodeGenFunction &CGF, CGBuilderTy &B) : DI(CGF.getDebugInfo()), Builder(B) { if (DI) { SavedLoc = DI->getLocation(); @@ -83,7 +83,7 @@ BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B) } } -BuiltinLocation::~BuiltinLocation() { +ArtificialLocation::~ArtificialLocation() { if (DI) { assert(Builder.getCurrentDebugLocation().getLine() == 0); DI->CurLoc = SavedLoc; |