Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.

llvm-svn: 75863
This commit is contained in:
Owen Anderson
2009-07-15 23:53:25 +00:00
parent f060b4d977
commit 4fdeba9706
25 changed files with 83 additions and 104 deletions

View File

@@ -154,7 +154,7 @@ bool StackProtector::InsertStackProtectors() {
BasicBlock &Entry = F->getEntryBlock();
Instruction *InsPt = &Entry.front();
AI = new AllocaInst(*Context, PtrTy, "StackGuardSlot", InsPt);
AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt);
LoadInst *LI = new LoadInst(StackGuardVar, "StackGuard", false, InsPt);
Value *Args[] = { LI, AI };