diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-28 16:34:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-28 16:34:49 +0000 |
commit | cef9fc37f42aa0a988096a36fba11039dd833faf (patch) | |
tree | 76745cfe753108a0b66d69e36956ad9fdc1d2fcd /llvm/lib/Analysis/Lint.cpp | |
parent | 54d7aaa819f2c3d1287ca574695832cf5574692d (diff) | |
download | bcm5719-llvm-cef9fc37f42aa0a988096a36fba11039dd833faf.tar.gz bcm5719-llvm-cef9fc37f42aa0a988096a36fba11039dd833faf.zip |
Eli pointed out that va_arg instruction result values don't
reference the stack.
llvm-svn: 104951
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index 691b9342957..4b9f284c9dc 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -232,9 +232,9 @@ void Lint::visitCallSite(CallSite CS) { for (CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end(); AI != AE; ++AI) { Value *Obj = findValue(*AI, /*OffsetOk=*/true); - Assert1(!isa<AllocaInst>(Obj) && !isa<VAArgInst>(Obj), + Assert1(!isa<AllocaInst>(Obj), "Undefined behavior: Call with \"tail\" keyword references " - "alloca or va_arg", &I); + "alloca", &I); } @@ -323,8 +323,8 @@ void Lint::visitReturnInst(ReturnInst &I) { if (Value *V = I.getReturnValue()) { Value *Obj = findValue(V, /*OffsetOk=*/true); - Assert1(!isa<AllocaInst>(Obj) && !isa<VAArgInst>(Obj), - "Unusual: Returning alloca or va_arg value", &I); + Assert1(!isa<AllocaInst>(Obj), + "Unusual: Returning alloca value", &I); } } |