[llvm] r220007 - [LLVM-C] Add LLVMInstructionClone.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Oct 17 14:59:11 PDT 2014


> +LLVMValueRef LLVMInstructionClone(LLVMValueRef Inst) {
> +  if (Instruction *C = dyn_cast<Instruction>(unwrap(Inst)))

Why dyn_cast? It seems better to document that an Instruction must be
passed and use cast.

Cheers,
Rafael



More information about the llvm-commits mailing list