summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-12-05 13:19:37 -0800
committerAdrian Prantl <aprantl@apple.com>2019-12-05 13:30:23 -0800
commit338588d7cf1865f2095f5961b73cfb533bc535c4 (patch)
tree87ad4174f2e08d3a74017ccb5a348a8b9a48c42e /clang/lib/CodeGen/CGDebugInfo.h
parentdecee04e630dedff8fe988b340ac015e510bf687 (diff)
downloadbcm5719-llvm-338588d7cf1865f2095f5961b73cfb533bc535c4.tar.gz
bcm5719-llvm-338588d7cf1865f2095f5961b73cfb533bc535c4.zip
Debug Info: Apply a default location for cleanups if none is available.
This unbreaks the debuginfo-tests testsuite by replacing the assertion with a default location. There are cleanups in helper functions that don't have a valid source location such as block copy helpers and it's not worth tracking each of them down. rdar://57630879
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index 8e74f7e0196..fed79f0095b 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -748,6 +748,7 @@ public:
ApplyDebugLocation(ApplyDebugLocation &&Other) : CGF(Other.CGF) {
Other.CGF = nullptr;
}
+ ApplyDebugLocation &operator=(ApplyDebugLocation &&) = default;
~ApplyDebugLocation();
OpenPOWER on IntegriCloud