For ARM backend, fixed "byval" attribute support.
[oota-llvm.git] / lib / CodeGen / MachineModuleInfo.cpp
index 0ea9ae0fcc890d26aacf07700b4b2688c30e7ec3..8af9d053b12a266d55422697543e35f28c82d690 100644 (file)
@@ -326,8 +326,7 @@ void MachineModuleInfo::AnalyzeModule(const Module &M) {
   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 =