aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
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.