Index: lib/Transforms/NaCl/PNaClABISimplify.cpp |
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
index e5d2fbd4b38da27062c5e82a5b8bc2590ac2d001..c8dcae1d19d4fedcc8dd63913e3ae720819c134e 100644 |
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp |
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
@@ -154,6 +154,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManagerBase &PM) { |
// ConstantExprs have already been expanded out. |
PM.add(createReplacePtrsWithIntsPass()); |
+ // Convert struct reg function params to struct* byval |
+ PM.add(createSimplifyStructRegSignaturesPass()); |
+ |
// The atomic cmpxchg instruction returns a struct, and is rewritten to an |
// intrinsic as a post-opt pass, we therefore need to expand struct regs. |
PM.add(createExpandStructRegsPass()); |