[PATCH] D13666: Add an (optional) identification block in the bitcode

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 13:36:21 PDT 2015


vsk added a subscriber: vsk.
vsk added a comment.

Is it possible to add a test for this, perhaps by forcing bad bitcode into llvm-dis?

  $ llvm-as -disable-verify -o - | llvm-dis
  define void @f() {
    %1 = alloca i32
    %1 = %1
    ret void
  }
  llvm-as: <stdin>:3:8: error: expected instruction opcode

Seems like we could have a check-line here for the message BitcodeReader::error emits.


http://reviews.llvm.org/D13666





More information about the llvm-commits mailing list