80-column and whitespace fixups.

llvm-svn: 168344
This commit is contained in:
Eric Christopher 2012-11-20 00:15:36 +00:00
parent b3d5d71dfa
commit b1d992fb35
2 changed files with 54 additions and 52 deletions

View File

@ -68,7 +68,8 @@ uint64_t DIDescriptor::getUInt64Field(unsigned Elt) const {
return 0;
if (Elt < DbgNode->getNumOperands())
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt)))
if (ConstantInt *CI
= dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt)))
return CI->getZExtValue();
return 0;
@ -820,9 +821,10 @@ void DebugInfoFinder::processModule(const Module &M) {
}
for (Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I)
for (Function::const_iterator FI = (*I).begin(), FE = (*I).end(); FI != FE; ++FI)
for (BasicBlock::const_iterator BI = (*FI).begin(), BE = (*FI).end(); BI != BE;
++BI) {
for (Function::const_iterator FI = (*I).begin(), FE = (*I).end();
FI != FE; ++FI)
for (BasicBlock::const_iterator BI = (*FI).begin(), BE = (*FI).end();
BI != BE; ++BI) {
if (const DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI))
processDeclare(DDI);