The -inline pass creates invalid bytecode from this testcase: opt -inline hi_res.bc WARNING: You're attempting to print out a bytecode file. This is inadvisable as it may cause display problems. If you REALLY want to taste LLVM bytecode first-hand, you can force output with the `-f' option. Cannot take the address of an inline asm! invoke void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "==imr,==imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( i32* null, i32* null ) to label %.noexc unwind label %cleanup144 Broken module found, compilation aborted!
Created attachment 782 [details] testcase
A winning combination: exceptions AND inline asm! :) Fixed, patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070409/047684.html Testcase here: Transforms/Inline/2007-04-15-InlineEH.ll -Chris