Skip to content

Commit f166d35

Browse files
committed
Remove duplicated code after refactoring
1 parent 81d4fea commit f166d35

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

clang/utils/reduce-clang-crash.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -518,24 +518,6 @@ def classify_crash(self) -> FailureType:
518518
if backend_result == FailureType.BackEnd:
519519
return backend_result
520520

521-
# Try running w/ -emit-llvm to generate an IR file,
522-
# if it succeeds we have a backend failure, and can use llc.
523-
if not self.check_expected_output(
524-
args=self.clang_args + ["-emit-llvm", "-o", self.ir_file]
525-
):
526-
print("Checking llc for failure")
527-
if self.check_expected_output(
528-
cmd=self.llc,
529-
args=[self.opt_level, "-filetype=obj"],
530-
filename=self.ir_file,
531-
):
532-
print("Found BackEnd Crash")
533-
return FailureType.BackEnd
534-
elif os.path.exists(self.ir_file):
535-
# clean up the IR file if we generated it, but won't use it.
536-
print(f"clean up {self.ir_file}, since we can't repro w/ llc")
537-
os.remove(self.ir_file)
538-
539521
# The IR file will be in 'self.ir_file'
540522
self.extract_crashing_ir()
541523
return self.check_middle_end()

0 commit comments

Comments
 (0)