From 3e29f96988b0438e42dba3790f61fb3df42d90cb Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 13 Jul 2010 23:19:49 +0000 Subject: 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 --- lib/CodeGen/CGException.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CGException.cpp') 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"); +} -- cgit v1.2.3-18-g5258