summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitfe4848b55da5bf36b06e2e397725aad59c127b80 (patch)
tree361d05b776fe8a31ed80e76cf7f4b575ecea93d9 /llvm/lib
parent9f404cc421f33eb56c65b862357610e5e165e3b5 (diff)
downloadbcm5719-llvm-fe4848b55da5bf36b06e2e397725aad59c127b80.tar.gz
bcm5719-llvm-fe4848b55da5bf36b06e2e397725aad59c127b80.zip
Remove obviously invalid early exit that prevented analyzing ConstantAggregateZeros.
Found by the clang static analyzer. llvm-svn: 148540
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 008f2595737..e4af225807f 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud