From: Benjamin Kramer Date: Fri, 20 Jan 2012 14:42:25 +0000 (+0000) Subject: Remove obviously invalid early exit that prevented analyzing ConstantAggregateZeros. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=07df1b4d1a299d18159aa9396bb02892fed773ac;p=oota-llvm.git Remove obviously invalid early exit that prevented analyzing ConstantAggregateZeros. Found by the clang static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 008f2595737..e4af225807f 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -4611,7 +4611,6 @@ GetAddressedElementFromGlobal(GlobalVariable *GV, } else { llvm_unreachable("Unknown constant aggregate type!"); } - return 0; } else { return 0; // Unknown initializer type }