From 97176da393dc1164736b74a9f9d7cfd59a280b62 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 22 May 2019 17:45:24 +0000 Subject: [PATCH] Fixed a -Wunused-variable warning when assertions are disabled git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361411 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index fec092ad22..89c053f4b2 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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; } -- 2.40.0