summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-08-21 03:43:09 +0000
committerRichard Trieu <rtrieu@google.com>2015-08-21 03:43:09 +0000
commit6995de9f1d54006534430d506ba99fd8ccbf5391 (patch)
tree36cf9166a10362eba71c3a1b5895e066a7e67734 /clang/lib/Driver/Tools.cpp
parentfddd0e66deddd2b85d07ae6e570c484bc9fb36af (diff)
downloadbcm5719-llvm-6995de9f1d54006534430d506ba99fd8ccbf5391.tar.gz
bcm5719-llvm-6995de9f1d54006534430d506ba99fd8ccbf5391.zip
Fix a few things with -Winfinite-recursion. NFC
Now that -Winfinite-recursion no longer uses recursive calls to before path analysis, several bits of the code can be improved. The main changes: 1) Early return when finding a path to the exit block without a recursive call 2) Moving the states vector into checkForRecursiveFunctionCall instead of passing it in by reference 3) Change checkForRecursiveFunctionCall to return a bool when the warning should be emitted. 4) Use the State vector instead of storing it in the Stack vector. llvm-svn: 245666
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud