[llvm] r175033 - [asan] fix confusing indentation

Kostya Serebryany kcc at google.com
Tue Feb 12 21:14:12 PST 2013


Author: kcc
Date: Tue Feb 12 23:14:12 2013
New Revision: 175033

URL: http://llvm.org/viewvc/llvm-project?rev=175033&view=rev
Log:
[asan] fix confusing indentation

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=175033&r1=175032&r2=175033&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Tue Feb 12 23:14:12 2013
@@ -219,7 +219,8 @@ static ShadowMapping getShadowMapping(co
   if (!ZeroBaseShadow && ClShort64BitOffset && IsX86_64 && !IsMacOSX) {
     assert(LongSize == 64);
     Mapping.Offset = kDefaultShort64bitShadowOffset;
-  } if (!ZeroBaseShadow && ClMappingOffsetLog >= 0) {
+  }
+  if (!ZeroBaseShadow && ClMappingOffsetLog >= 0) {
     // Zero offset log is the special case.
     Mapping.Offset = (ClMappingOffsetLog == 0) ? 0 : 1ULL << ClMappingOffsetLog;
   }





More information about the llvm-commits mailing list