mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 13:16:24 -04:00
ccef81bf70
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371700 91177308-0d34-0410-b5e6-96231b3b80d8
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)
|