aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-01-20 14:42:25 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-01-20 14:42:25 +0000
commit07df1b4d1a299d18159aa9396bb02892fed773ac (patch)
tree20c9155ae35472d73bc8182034000ee316155de4 /lib/Analysis/ScalarEvolution.cpp
parentace4f2b0d4d542e3a835bcd4fad69205c5a73330 (diff)
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
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 008f259573..e4af225807 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
}