[llvm-commits] [llvm] r148540 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Jan 20 06:42:25 PST 2012


Author: d0k
Date: Fri Jan 20 08:42:25 2012
New Revision: 148540

URL: http://llvm.org/viewvc/llvm-project?rev=148540&view=rev
Log:
Remove obviously invalid early exit that prevented analyzing ConstantAggregateZeros.

Found by the clang static analyzer.

Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=148540&r1=148539&r2=148540&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri Jan 20 08:42:25 2012
@@ -4611,7 +4611,6 @@
       } else {
         llvm_unreachable("Unknown constant aggregate type!");
       }
-      return 0;
     } else {
       return 0; // Unknown initializer type
     }





More information about the llvm-commits mailing list