[cfe-commits] r95563 - /cfe/trunk/lib/Checker/FlatStore.cpp
Daniel Dunbar
daniel at zuster.org
Mon Feb 8 12:24:21 PST 2010
Author: ddunbar
Date: Mon Feb 8 14:24:21 2010
New Revision: 95563
URL: http://llvm.org/viewvc/llvm-project?rev=95563&view=rev
Log:
Fix -Asserts warning.
Modified:
cfe/trunk/lib/Checker/FlatStore.cpp
Modified: cfe/trunk/lib/Checker/FlatStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/FlatStore.cpp?rev=95563&r1=95562&r2=95563&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/FlatStore.cpp (original)
+++ cfe/trunk/lib/Checker/FlatStore.cpp Mon Feb 8 14:24:21 2010
@@ -9,6 +9,7 @@
#include "clang/Checker/PathSensitive/GRState.h"
#include "llvm/ADT/ImmutableIntervalMap.h"
+#include "llvm/Support/ErrorHandling.h"
using namespace clang;
using llvm::Interval;
@@ -159,6 +160,7 @@
return Interval(0, Size-1);
}
default:
- assert(0 && "Region kind unhandled.");
+ llvm_unreachable("Region kind unhandled.");
+ return Interval(0, 0);
}
}
More information about the cfe-commits
mailing list