diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
| commit | 4fdeba97063da375ba360a021db34f025c0d9faf (patch) | |
| tree | cd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/AsmParser | |
| parent | f060b4d9771d1035891aa458f5688ed8c12a30d4 (diff) | |
| download | bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.gz bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.zip | |
Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.
llvm-svn: 75863
Diffstat (limited to 'llvm/lib/AsmParser')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 1c8156adcf8..080575df84a 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3182,9 +3182,9 @@ bool LLParser::ParseAlloc(Instruction *&Inst, PerFunctionState &PFS, return Error(SizeLoc, "element count must be i32"); if (Opc == Instruction::Malloc) - Inst = new MallocInst(Context, Ty, Size, Alignment); + Inst = new MallocInst(Ty, Size, Alignment); else - Inst = new AllocaInst(Context, Ty, Size, Alignment); + Inst = new AllocaInst(Ty, Size, Alignment); return false; } |

