From 14f1703ae33e13dbcadd701603fd4d7a6f7010b9 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Mon, 20 Jun 2005 15:24:23 +0000 Subject: [PATCH] make AliasAnalysis know that VAArg writes memory. This is extremely conservative and should be fixed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22267 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/AliasAnalysis.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index c63d9908e22..eff29719c72 100644 --- a/include/llvm/Analysis/AliasAnalysis.h +++ b/include/llvm/Analysis/AliasAnalysis.h @@ -37,6 +37,7 @@ namespace llvm { class LoadInst; class StoreInst; +class VAArgInst; class TargetData; class AliasAnalysis { @@ -254,8 +255,12 @@ public: ModRefResult getModRefInfo(InvokeInst *I, Value *P, unsigned Size) { return getModRefInfo(CallSite(I), P, Size); } + ModRefResult getModRefInfo(VAArgInst* I, Value* P, unsigned Size) { + return AliasAnalysis::Mod; + } ModRefResult getModRefInfo(Instruction *I, Value *P, unsigned Size) { switch (I->getOpcode()) { + case Instruction::VAArg: return getModRefInfo((VAArgInst*)I, P, Size); case Instruction::Load: return getModRefInfo((LoadInst*)I, P, Size); case Instruction::Store: return getModRefInfo((StoreInst*)I, P, Size); case Instruction::Call: return getModRefInfo((CallInst*)I, P, Size);