Index: lib/Transforms/NaCl/PNaClABISimplify.cpp |
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
index 99e3796abeee99a39341afedddf6ec7660e41bb4..073f2d1068559b2c8831b8a1d63118c09db44b01 100644 |
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp |
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
@@ -151,6 +151,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(createNormalizeStructRegSignaturesPass()); |
+ |
// 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 one |
// last time. |