[llvm] r221957 - Fix 80 cols caught by the linter...

Reid Kleckner rnk at google.com
Thu Nov 13 16:51:54 PST 2014


For the record I looked at the diff produced by git-clang-format and seemed
too big for a simple s/NULL/nullptr/ change. It would be nice if it had a
mode of "only reformat if we overflowed 80cols".

On Thu, Nov 13, 2014 at 4:41 PM, David Blaikie <dblaikie at gmail.com> wrote:

> Author: dblaikie
> Date: Thu Nov 13 18:41:42 2014
> New Revision: 221957
>
> URL: http://llvm.org/viewvc/llvm-project?rev=221957&view=rev
> Log:
> Fix 80 cols caught by the linter...
>
> We have a linter running in our build now?
>
> Modified:
>     llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
>     llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
>
> Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=221957&r1=221956&r2=221957&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
> (original)
> +++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu Nov
> 13 18:41:42 2014
> @@ -1431,10 +1431,12 @@ void FunctionStackPoisoner::initializeCa
>          kAsanStackFreeNameTemplate + Suffix, IRB.getVoidTy(), IntptrTy,
>          IntptrTy, IntptrTy, nullptr));
>    }
> -  AsanPoisonStackMemoryFunc =
> checkInterfaceFunction(M.getOrInsertFunction(
> -      kAsanPoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy,
> nullptr));
> -  AsanUnpoisonStackMemoryFunc =
> checkInterfaceFunction(M.getOrInsertFunction(
> -      kAsanUnpoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy,
> nullptr));
> +  AsanPoisonStackMemoryFunc = checkInterfaceFunction(
> +      M.getOrInsertFunction(kAsanPoisonStackMemoryName, IRB.getVoidTy(),
> +                            IntptrTy, IntptrTy, nullptr));
> +  AsanUnpoisonStackMemoryFunc = checkInterfaceFunction(
> +      M.getOrInsertFunction(kAsanUnpoisonStackMemoryName, IRB.getVoidTy(),
> +                            IntptrTy, IntptrTy, nullptr));
>  }
>
>  void
>
> Modified: llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp?rev=221957&r1=221956&r2=221957&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
> (original)
> +++ llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp Thu Nov
> 13 18:41:42 2014
> @@ -351,8 +351,9 @@ void MemorySanitizer::initializeCallback
>    MsanSetAllocaOrigin4Fn = M.getOrInsertFunction(
>      "__msan_set_alloca_origin4", IRB.getVoidTy(), IRB.getInt8PtrTy(),
> IntptrTy,
>      IRB.getInt8PtrTy(), IntptrTy, nullptr);
> -  MsanPoisonStackFn = M.getOrInsertFunction(
> -    "__msan_poison_stack", IRB.getVoidTy(), IRB.getInt8PtrTy(), IntptrTy,
> nullptr);
> +  MsanPoisonStackFn =
> +      M.getOrInsertFunction("__msan_poison_stack", IRB.getVoidTy(),
> +                            IRB.getInt8PtrTy(), IntptrTy, nullptr);
>    MsanChainOriginFn = M.getOrInsertFunction(
>      "__msan_chain_origin", IRB.getInt32Ty(), IRB.getInt32Ty(), nullptr);
>    MemmoveFn = M.getOrInsertFunction(
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141113/be3c872e/attachment.html>


More information about the llvm-commits mailing list