aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/GSYM/GsymCreator.cpp')
-rw-r--r--llvm/lib/DebugInfo/GSYM/GsymCreator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
index 93ff3b9..d87cb4d 100644
--- a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
+++ b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
@@ -552,7 +552,7 @@ llvm::Error GsymCreator::saveSegments(StringRef Path,
createSegment(SegmentSize, FuncIdx);
if (ExpectedGC) {
GsymCreator *GC = ExpectedGC->get();
- if (GC == NULL)
+ if (!GC)
break; // We had not more functions to encode.
// Don't collect any messages at all
OutputAggregator Out(nullptr);