diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-09 16:01:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-09 16:01:06 +0000 |
commit | fc13db477ae829a01dceaefb11052f86b08938e4 (patch) | |
tree | 54e02acfed398533c5aae3027580bc545758c460 /llvm/lib/Transforms | |
parent | c0093609b03f7d7bc478c3be6c43813b2e31efcf (diff) | |
download | bcm5719-llvm-fc13db477ae829a01dceaefb11052f86b08938e4.tar.gz bcm5719-llvm-fc13db477ae829a01dceaefb11052f86b08938e4.zip |
Use auto and clang-format this snippet.
llvm-svn: 208421
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 51778151e4d..d6db61b6759 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -896,14 +896,16 @@ static unsigned enforceKnownAlignment(Value *V, unsigned Align, 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(); |