[llvm] r208421 - Use auto and clang-format this snippet.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 9 09:01:06 PDT 2014
Author: rafael
Date: Fri May 9 11:01:06 2014
New Revision: 208421
URL: http://llvm.org/viewvc/llvm-project?rev=208421&view=rev
Log:
Use auto and clang-format this snippet.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=208421&r1=208420&r2=208421&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Fri May 9 11:01:06 2014
@@ -896,14 +896,16 @@ static unsigned enforceKnownAlignment(Va
return PrefAlign;
}
- if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
+ if (auto *GV = dyn_cast<GlobalValue>(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();
More information about the llvm-commits
mailing list