diff options
Diffstat (limited to 'lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r-- | lib/Transforms/IPO/ConstantMerge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp index 8efad05855..6b62f3bbf4 100644 --- a/lib/Transforms/IPO/ConstantMerge.cpp +++ b/lib/Transforms/IPO/ConstantMerge.cpp @@ -102,7 +102,7 @@ bool ConstantMerge::runOnModule(Module &M) { } // Only process constants with initializers in the default address space. - if (!GV->isConstant() ||!GV->hasDefinitiveInitializer() || + if (!GV->isConstant() || !GV->hasDefinitiveInitializer() || GV->getType()->getAddressSpace() != 0 || GV->hasSection() || // Don't touch values marked with attribute(used). UsedGlobals.count(GV)) @@ -128,7 +128,7 @@ bool ConstantMerge::runOnModule(Module &M) { GlobalVariable *GV = GVI++; // Only process constants with initializers in the default address space. - if (!GV->isConstant() ||!GV->hasDefinitiveInitializer() || + if (!GV->isConstant() || !GV->hasDefinitiveInitializer() || GV->getType()->getAddressSpace() != 0 || GV->hasSection() || // Don't touch values marked with attribute(used). UsedGlobals.count(GV)) |