[LLVMdev] Typo in IsLegalToCallImmediateAddr?

David Meyer pdox at google.com
Thu Oct 20 17:11:37 PDT 2011


Rafael,

Use this bitcode:

define i32 @main() nounwind {
entry:
  %call = tail call i32 inttoptr (i64 256 to i32 ()*)() nounwind
  ret i32 0
}

And this command:

$ llc -mtriple "i686-linux-gnu" test.ll -o test.s -filetype=asm
-relocation-model=pic

- pdox



More information about the llvm-dev mailing list