diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-11-20 02:20:27 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-11-20 02:20:27 +0000 |
commit | e74c73cf46ce1c158da130c9ab733fdcaadb0df6 (patch) | |
tree | bde55243008105a1006d4b19a230c2308bb756eb /lib | |
parent | 52e3c5c6b955bf8313c95a4339d6cf91c4547e56 (diff) | |
download | external_llvm-e74c73cf46ce1c158da130c9ab733fdcaadb0df6.zip external_llvm-e74c73cf46ce1c158da130c9ab733fdcaadb0df6.tar.gz external_llvm-e74c73cf46ce1c158da130c9ab733fdcaadb0df6.tar.bz2 |
Allow constructor parameter to override aggregating args; fix spacing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Utils/CodeExtractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index b8b0980..3878ea2 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -49,7 +49,7 @@ namespace { const Type *RetTy; public: CodeExtractor(DominatorSet *ds = 0, bool AggArgs = false) - : DS(ds), AggregateArgs(AggregateArgsOpt), NumExitBlocks(~0U) {} + : DS(ds), AggregateArgs(AggArgs||AggregateArgsOpt), NumExitBlocks(~0U) {} Function *ExtractCodeRegion(const std::vector<BasicBlock*> &code); @@ -403,7 +403,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer, // Emit the call to the function CallInst *call = new CallInst(newFunction, params, - NumExitBlocks > 1 ? "targetBlock": ""); + NumExitBlocks > 1 ? "targetBlock" : ""); codeReplacer->getInstList().push_back(call); Function::aiterator OutputArgBegin = newFunction->abegin(); |