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.
14 lines
381 B
YAML
14 lines
381 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: {{.*}}: TestNoVRegsOverrideConflict has explicit property NoVRegs, but contains virtual registers
|
|
name: TestNoVRegsOverrideConflict
|
|
noVRegs: true
|
|
body: |
|
|
bb.0:
|
|
%0:_(s32) = G_IMPLICIT_DEF
|
|
...
|