From b417513a506f2dfbe478fa499d75e6a625a361a5 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 22 May 2019 17:45:24 +0000 Subject: Fixed a -Wunused-variable warning when assertions are disabled llvm-svn: 361411 --- clang/lib/CodeGen/CGDebugInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index fec092ad221..89c053f4b29 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -4357,6 +4357,7 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) { if (const auto *ECD = dyn_cast(VD)) { const auto *ED = cast(ECD->getDeclContext()); assert(isa(ED->getTypeForDecl()) && "Enum without EnumType?"); + (void)ED; return; } -- cgit v1.2.3