Skip to content

Commit 336c931

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

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
@@ -444,8 +444,7 @@ const llvm::Function *LLVMBasedICFG::getFunction(const string &Fun) const {
444444
}
445445

446446
const llvm::Function *LLVMBasedICFG::getFirstGlobalCtorOrNull() const {
447-
auto It = GlobalCtors.begin();
448-
if (It != GlobalCtors.end()) {
447+
if (auto It = GlobalCtors.begin(); It != GlobalCtors.end()) {
449448
return It->second;
450449
}
451450
return nullptr;

0 commit comments

Comments
 (0)