From 9cc6d524ea8cd266df1a0a0904bb431ec2c4fc27 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Mon, 30 Jan 2012 19:26:20 +0000 Subject: [PATCH] Here's a new one: GCC was complaining about an only-used-in-asserts *function*. Wrap the function in #ifndef NDEBUG. llvm-svn: 149259 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index c491d49a969b..8be14ee6853b 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -797,7 +797,7 @@ void LiveIntervals::addKillFlags() { } } - +#ifndef NDEBUG static bool intervalRangesSane(const LiveInterval& li) { if (li.empty()) { return true; @@ -814,6 +814,7 @@ static bool intervalRangesSane(const LiveInterval& li) { return true; } +#endif template static void handleMoveDefs(LiveIntervals& lis, SlotIndex origIdx, @@ -1145,4 +1146,3 @@ LiveRange LiveIntervals::addLiveRangeToEndOfBlock(unsigned reg, return LR; } -