From 45a44be9c9cbc19f99964b23c421a1bd1023f8de Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 31 Jul 2017 16:29:00 +0000 Subject: [PATCH] Extend ifndef to printDebugLoc. GCC7 did not warn about that, but Clang does. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309573 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveDebugVariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp index a974dc2f1c4..1dce1b3c8ed 100644 --- a/lib/CodeGen/LiveDebugVariables.cpp +++ b/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(); -- 2.40.0