aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-22 17:47:19 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-22 17:47:19 -0800
commit7d90819cb991b4537b1f6857b0a61ac955285b56 (patch)
tree6c5017a34c8677550bb78ac00b72608ae26a2844 /lib/Target/CppBackend/CPPBackend.cpp
parentf1ba24e26028730be38c59b14d7ee28f06918094 (diff)
align stack to 8 bytes
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index faba418e1d..159d048690 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -221,8 +221,8 @@ namespace {
void printModuleBody();
- unsigned stackAlign(unsigned x) { // XXX need 8-byte, for doubles
- return x + (x%4 != 0 ? 4 - x%4 : 0);
+ unsigned stackAlign(unsigned x) {
+ return x + (x%8 != 0 ? 8 - x%8 : 0);
}
};
} // end anonymous namespace.