[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Apr 5 14:01:03 PDT 2004
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.4 -> 1.5
---
Log message:
Kill warnings during an optimized compile where assert() disappears.
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.4 llvm/lib/Analysis/ScalarEvolution.cpp:1.5
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.4 Mon Apr 5 13:46:55 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp Mon Apr 5 14:00:46 2004
@@ -143,10 +143,12 @@
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 {
More information about the llvm-commits
mailing list