diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-02 20:20:56 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-02 20:20:56 +0000 |
| commit | c7e0813dbd480892f92de92f0d1afd2395948770 (patch) | |
| tree | 5e6477e0274a277a25ef5e7c436c2f5f4ed6ac74 | |
| parent | 9146fc8fd67cabc68a612908d909db7339f1e6c7 (diff) | |
| download | bcm5719-llvm-c7e0813dbd480892f92de92f0d1afd2395948770.tar.gz bcm5719-llvm-c7e0813dbd480892f92de92f0d1afd2395948770.zip | |
Fix the -Werror build, NFC
llvm-svn: 227849
| -rw-r--r-- | llvm/lib/IR/DebugInfoMetadata.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp index 21a95f9f9fc..467d21ad36a 100644 --- a/llvm/lib/IR/DebugInfoMetadata.cpp +++ b/llvm/lib/IR/DebugInfoMetadata.cpp @@ -77,9 +77,11 @@ static StringRef getString(const MDString *S) { return StringRef(); } +#ifndef NDEBUG static bool isCanonical(const MDString *S) { return !S || !S->getString().empty(); } +#endif GenericDebugNode *GenericDebugNode::getImpl(LLVMContext &Context, unsigned Tag, MDString *Header, |

