summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-20 23:27:09 +0000
committerChris Lattner <sabre@nondot.org>2004-02-20 23:27:09 +0000
commit7b0368ee16b9abb8220050adb1dad8f43f092704 (patch)
tree72b819558cfb0b0bb3ce71cfb7eee2796fde7bb1 /llvm/lib
parent418b3a0f20e0f60d47e82af16d6ea516b9bd196e (diff)
downloadbcm5719-llvm-7b0368ee16b9abb8220050adb1dad8f43f092704.tar.gz
bcm5719-llvm-7b0368ee16b9abb8220050adb1dad8f43f092704.zip
Add two missing returns, which caused us to be very pessimistic about the
printf and scanf families! llvm-svn: 11683
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DataStructure/GraphChecker.cpp2
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/GraphChecker.cpp b/llvm/lib/Analysis/DataStructure/GraphChecker.cpp
index 5cbd5ba7629..af8731eb05c 100644
--- a/llvm/lib/Analysis/DataStructure/GraphChecker.cpp
+++ b/llvm/lib/Analysis/DataStructure/GraphChecker.cpp
@@ -12,7 +12,7 @@
// or not a node is collapsed, etc. These are the command line arguments that
// it supports:
//
-// --dsgc-dsapass={local,bu,td} - Specify what flavor of graph to check
+// --dsgc-dspass={local,bu,td} - Specify what flavor of graph to check
// --dsgc-abort-if-any-collapsed - Abort if any collapsed nodes are found
// --dsgc-abort-if-collapsed=<list> - Abort if a node pointed to by an SSA
// value with name in <list> is collapsed
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index a3a0e2ebc6b..88dd5a309a4 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/lib/Analysis/DataStructure/Local.cpp
@@ -38,7 +38,6 @@ X("datastructure", "Local Data Structure Analysis");
static cl::opt<bool>
TrackIntegersAsPointers("dsa-track-integers",
cl::desc("If this is set, track integers as potential pointers"));
-
namespace llvm {
namespace DS {
@@ -581,6 +580,7 @@ void GraphBuilder::visitCallSite(CallSite CS) {
if (DSNode *N = getValueDest(**AI).getNode())
N->setReadMarker();
}
+ return;
} else if (F->getName() == "scanf" || F->getName() == "fscanf" ||
F->getName() == "sscanf") {
CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end();
@@ -612,6 +612,7 @@ void GraphBuilder::visitCallSite(CallSite CS) {
if (DSNode *N = getValueDest(**AI).getNode())
N->setModifiedMarker();
}
+ return;
} else if (F->getName() == "strtok") {
// strtok reads and writes the first argument, returning it. It reads
// its second arg. FIXME: strtok also modifies some hidden static
OpenPOWER on IntegriCloud