From 21355cfcbad739eae62625262269cdc9b635293b Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 5 Apr 2004 19:00:46 +0000 Subject: [PATCH] Kill warnings during an optimized compile where assert() disappears. llvm-svn: 12669 --- lib/Analysis/ScalarEvolution.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 8e6ee5363ae..f54dce7ca2e 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -143,10 +143,12 @@ SCEVCouldNotCompute::SCEVCouldNotCompute() : SCEV(scCouldNotCompute) {} bool SCEVCouldNotCompute::isLoopInvariant(const Loop *L) const { assert(0 && "Attempt to use a SCEVCouldNotCompute object!"); + return false; } const Type *SCEVCouldNotCompute::getType() const { assert(0 && "Attempt to use a SCEVCouldNotCompute object!"); + return 0; } bool SCEVCouldNotCompute::hasComputableLoopEvolution(const Loop *L) const {