]> granicus.if.org Git - clang/commit
[MS ABI] Some code cleanups
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 9 Jul 2016 19:26:25 +0000 (19:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 9 Jul 2016 19:26:25 +0000 (19:26 +0000)
commitfc5fcaeca07b2af7483fe2fd0842bf82284065c9
treee50f5641bcf32421151faafae274d33b91d22f3a
parentdbd9e1b17fb183500980d0630e2bf87742edb66d
[MS ABI] Some code cleanups

Don't create unnecessary truncations if the result will not be used.
Also prefer preforming math before the truncation, it makes it a little
easier to reason about.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274984 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp