From b4c14b4ad34b508153e89467e54a8e8d47d76d49 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 9 May 2014 16:01:06 +0000 Subject: [PATCH] Use auto and clang-format this snippet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208421 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/Local.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 51778151e4d..d6db61b6759 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -896,14 +896,16 @@ static unsigned enforceKnownAlignment(Value *V, unsigned Align, return PrefAlign; } - if (GlobalValue *GV = dyn_cast(V)) { + if (auto *GV = dyn_cast(V)) { // If there is a large requested alignment and we can, bump up the alignment // of the global. - if (GV->isDeclaration()) return Align; + if (GV->isDeclaration()) + return Align; // If the memory we set aside for the global may not be the memory used by // the final program then it is impossible for us to reliably enforce the // preferred alignment. - if (GV->isWeakForLinker()) return Align; + if (GV->isWeakForLinker()) + return Align; if (GV->getAlignment() >= PrefAlign) return GV->getAlignment(); -- 2.34.1