summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/Lint.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-28 16:34:49 +0000
committerDan Gohman <gohman@apple.com>2010-05-28 16:34:49 +0000
commitcef9fc37f42aa0a988096a36fba11039dd833faf (patch)
tree76745cfe753108a0b66d69e36956ad9fdc1d2fcd /llvm/lib/Analysis/Lint.cpp
parent54d7aaa819f2c3d1287ca574695832cf5574692d (diff)
downloadbcm5719-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.cpp8
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);
}
}
OpenPOWER on IntegriCloud