diff options
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r-- | lib/Transforms/NaCl/PNaClABISimplify.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index db9f9e6ebf..e50112c741 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -30,6 +30,9 @@ void llvm::PNaClABISimplifyAddPreOptPasses(PassManager &PM) { // Expand out some uses of struct types. PM.add(createExpandArithWithOverflowPass()); + // ExpandStructRegs must be run after ExpandArithWithOverflow to + // expand out the insertvalue instructions that + // ExpandArithWithOverflow introduces. PM.add(createExpandStructRegsPass()); PM.add(createExpandVarArgsPass()); |