projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For ARM backend, fixed "byval" attribute support.
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineModuleInfo.cpp
diff --git
a/lib/CodeGen/MachineModuleInfo.cpp
b/lib/CodeGen/MachineModuleInfo.cpp
index 0ea9ae0fcc890d26aacf07700b4b2688c30e7ec3..8af9d053b12a266d55422697543e35f28c82d690 100644
(file)
--- a/
lib/CodeGen/MachineModuleInfo.cpp
+++ b/
lib/CodeGen/MachineModuleInfo.cpp
@@
-326,8
+326,7
@@
void MachineModuleInfo::AnalyzeModule(const Module &M) {
if (!GV || !GV->hasInitializer()) return;
// Should be an array of 'i8*'.
if (!GV || !GV->hasInitializer()) return;
// Should be an array of 'i8*'.
- const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
- if (InitList == 0) return;
+ const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i)
if (const Function *F =
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i)
if (const Function *F =