forked from OSchip/llvm-project
[ast-dump-tool] fix regression if --empty-implementation but --json-input-path is not
Looks like this broke in one of the relands of https://reviews.llvm.org/D93164
This commit is contained in:
parent
13877db2fa
commit
c0cd5274cc
|
@ -156,9 +156,11 @@ def main():
|
||||||
|
|
||||||
use_empty_implementation = options.empty_implementation
|
use_empty_implementation = options.empty_implementation
|
||||||
|
|
||||||
if not os.path.exists(options.json_input_path):
|
if (not use_empty_implementation
|
||||||
|
and not os.path.exists(options.json_input_path)):
|
||||||
use_empty_implementation = True
|
use_empty_implementation = True
|
||||||
|
|
||||||
|
if not use_empty_implementation:
|
||||||
with open(options.json_input_path) as f:
|
with open(options.json_input_path) as f:
|
||||||
jsonData = json.load(f)
|
jsonData = json.load(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue