This fixes a test failure when expensive checks are enabled. Use the correct return value when computing machine function properties resulted in an error (e.g. when conflicting with explicitly set values). Without this, the machine verifier would crash even in the presence of parsing errors which should have gently terminated execution.
15 lines
394 B
YAML
15 lines
394 B
YAML
# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
# Test that computed properties are not conflicting with explicitly set
|
|
# properties
|
|
|
|
---
|
|
# CHECK: error: {{.*}}: TestIsSSAOverrideConflict has explicit property IsSSA, but is not valid SSA
|
|
name: TestIsSSAOverrideConflict
|
|
isSSA: true
|
|
body: |
|
|
bb.0:
|
|
%0:_(s32) = G_IMPLICIT_DEF
|
|
%0:_(s32) = G_IMPLICIT_DEF
|
|
...
|