aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-13 23:19:49 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-13 23:19:49 +0000
commit3e29f96988b0438e42dba3790f61fb3df42d90cb (patch)
treec8c743e6ecec3e27d4230d9a01daaa6659b49b1e /lib/CodeGen/CGException.cpp
parente39a3894513349908cdb3beba2614e53cb288e6c (diff)
Work around an obnoxious GCC warning by changing semantics in a hopefully-
harmless way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGException.cpp')
-rw-r--r--lib/CodeGen/CGException.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp
index bfe00ea158..4980aad1b3 100644
--- a/lib/CodeGen/CGException.cpp
+++ b/lib/CodeGen/CGException.cpp
@@ -1541,4 +1541,6 @@ CodeGenFunction::CleanupBlock::~CleanupBlock() {
CGF.Builder.restoreIP(SavedIP);
}
-void EHScopeStack::LazyCleanup::_anchor() {}
+EHScopeStack::LazyCleanup::~LazyCleanup() {
+ llvm_unreachable("LazyCleanup is indestructable");
+}