mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
11d923a343
Fixing a couple of asan-identified bugs * use of an invalid "Use" iterator after the element was removed * use of StringRef to Function name after the Function was erased This reapplies r371567, which was reverted in r371580. llvm-svn: 371700
17 lines
361 B
Python
Executable File
17 lines
361 B
Python
Executable File
import sys
|
|
|
|
InterestingArgumentPresent = False
|
|
FunctionCallPresent = False
|
|
|
|
input = open(sys.argv[1], "r")
|
|
for line in input:
|
|
if "%interesting" in line:
|
|
InterestingArgumentPresent = True
|
|
if "call void @interesting" in line:
|
|
FunctionCallPresent = True
|
|
|
|
if InterestingArgumentPresent and FunctionCallPresent:
|
|
sys.exit(0) # Interesting!
|
|
|
|
sys.exit(1)
|