diff options
Diffstat (limited to 'lib/Analysis/ValueTracking.cpp')
| -rw-r--r-- | lib/Analysis/ValueTracking.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index c45005f343d39..fa0d7798cae94 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -1464,7 +1464,7 @@ void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,            // If the object is defined in the current Module, we'll be giving            // it the preferred alignment. Otherwise, we have to assume that it            // may only have the minimum ABI alignment. -          if (!GVar->isDeclaration() && !GVar->isWeakForLinker()) +          if (GVar->isStrongDefinitionForLinker())              Align = DL.getPreferredAlignment(GVar);            else              Align = DL.getABITypeAlignment(ObjectType);  | 
