diff options
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
| -rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 907ecf46e8ff..6bcf60fafc3e 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -92,10 +92,10 @@ static bool IsNullTerminatedString(const Constant *C) {    if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(C)) {      unsigned NumElts = CDS->getNumElements();      assert(NumElts != 0 && "Can't have an empty CDS"); -     +      if (CDS->getElementAsInteger(NumElts-1) != 0)        return false; // Not null terminated. -     +      // Verify that the null doesn't occur anywhere else in the string.      for (unsigned i = 0; i != NumElts-1; ++i)        if (CDS->getElementAsInteger(i) == 0) | 
