Skip to content

Commit 1b09a37

Browse files
committed
Extend ifndef to printDebugLoc.
GCC7 did not warn about that, but Clang does. llvm-svn: 309573
1 parent 94b8a87 commit 1b09a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/LiveDebugVariables.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ class LDVImpl {
329329
};
330330
} // namespace
331331

332+
#ifndef NDEBUG
332333
static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
333334
const LLVMContext &Ctx) {
334335
if (!DL)
@@ -350,7 +351,6 @@ static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
350351
CommentOS << " ]";
351352
}
352353

353-
#ifndef NDEBUG
354354
static void printExtendedName(raw_ostream &OS, const DILocalVariable *V,
355355
const DILocation *DL) {
356356
const LLVMContext &Ctx = V->getContext();

0 commit comments

Comments
 (0)