| Index: lib/Transforms/NaCl/PNaClABISimplify.cpp
|
| diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
|
| index 99e3796abeee99a39341afedddf6ec7660e41bb4..7541e5f05ee378cf2d57d26721093b915a1a92a6 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(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 one
|
| // last time.
|
|
|