Skip to content

Commit 9468653

Browse files
MMoryfabianbs96
andauthored
Update lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp
Co-authored-by: fabianbs96 <52407375+fabianbs96@users.noreply.github.com>
1 parent ae5813c commit 9468653

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ const llvm::Function *LLVMBasedICFG::getFirstGlobalCtorOrNull() const {
450450
return nullptr;
451451
}
452452
const llvm::Function *LLVMBasedICFG::getLastGlobalDtorOrNull() const {
453-
auto It = GlobalDtors.rbegin();
454-
if (It != GlobalDtors.rend()) {
453+
if (auto It = GlobalDtors.rbegin(); It != GlobalDtors.rend()) {
455454
return It->second;
456455
}
457456
return nullptr;

0 commit comments

Comments
 (0)