From 1b09a37c0774b518ba4db4d048fd591b31b867a0 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 31 Jul 2017 16:29:00 +0000 Subject: Extend ifndef to printDebugLoc. GCC7 did not warn about that, but Clang does. llvm-svn: 309573 --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index a974dc2..1dce1b3 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -329,6 +329,7 @@ public: }; } // namespace +#ifndef NDEBUG static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS, const LLVMContext &Ctx) { if (!DL) @@ -350,7 +351,6 @@ static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS, CommentOS << " ]"; } -#ifndef NDEBUG static void printExtendedName(raw_ostream &OS, const DILocalVariable *V, const DILocation *DL) { const LLVMContext &Ctx = V->getContext(); -- cgit v1.1