Extend ifndef to printDebugLoc.

GCC7 did not warn about that, but Clang does.

llvm-svn: 309573
This commit is contained in:
Florian Hahn 2017-07-31 16:29:00 +00:00
parent 94b8a87c8e
commit 1b09a37c07
1 changed files with 1 additions and 1 deletions

View File

@ -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();