Skip to content

Commit cece88a

Browse files
committed
Format
1 parent e22d260 commit cece88a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Transforms/IPO/GlobalOpt.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -946,12 +946,10 @@ OptimizeGlobalAddressOfAllocation(GlobalVariable *GV, CallInst *CI,
946946

947947
// If there is a comparison against null, we will insert a global bool to
948948
// keep track of whether the global was initialized yet or not.
949-
GlobalVariable *InitBool =
950-
new GlobalVariable(Type::getInt1Ty(GV->getContext()), false,
951-
GlobalValue::InternalLinkage,
952-
ConstantInt::getFalse(GV->getContext()),
953-
GV->getName()+".init", GV->getThreadLocalMode(),
954-
GV->getAddressSpace());
949+
GlobalVariable *InitBool = new GlobalVariable(
950+
Type::getInt1Ty(GV->getContext()), false, GlobalValue::InternalLinkage,
951+
ConstantInt::getFalse(GV->getContext()), GV->getName() + ".init",
952+
GV->getThreadLocalMode(), GV->getAddressSpace());
955953
bool InitBoolUsed = false;
956954

957955
// Loop over all instruction uses of GV, processing them in turn.

0 commit comments

Comments
 (0)