diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2015-07-09 21:21:33 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-09 21:21:33 +0000 |
| commit | c8704b02df54ff109f3fe28798aed5ff8b8ecb29 (patch) | |
| tree | 719148d7f61da0821d7e4fb85c8c9dde785644ad /llvm/test/CodeGen/MIR/machine-function-missing-name.mir | |
| parent | dcb9f0907f15c5a660cf8f9ffe315015af5fcaff (diff) | |
| download | bcm5719-llvm-c8704b02df54ff109f3fe28798aed5ff8b8ecb29.tar.gz bcm5719-llvm-c8704b02df54ff109f3fe28798aed5ff8b8ecb29.zip | |
MIR Parser: Report an error when parsing machine function with an empty body.
This commit adds a new error which is reported when the MIR Parser encounters
a machine function without any machine basic blocks. The machine verifier
expects that the machine functions have at least one MBB, and this error will
prevent machine functions without MBBs from reaching the machine verifier and
crashing with an assertion.
llvm-svn: 241862
Diffstat (limited to 'llvm/test/CodeGen/MIR/machine-function-missing-name.mir')
| -rw-r--r-- | llvm/test/CodeGen/MIR/machine-function-missing-name.mir | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/machine-function-missing-name.mir b/llvm/test/CodeGen/MIR/machine-function-missing-name.mir index b16156e54bd..a868a65d35f 100644 --- a/llvm/test/CodeGen/MIR/machine-function-missing-name.mir +++ b/llvm/test/CodeGen/MIR/machine-function-missing-name.mir @@ -16,7 +16,11 @@ --- # CHECK: [[@LINE+1]]:1: missing required key 'name' nme: foo +body: + - id: 0 ... --- name: bar +body: + - id: 0 ... |

