<div dir="ltr"><br><div>Hi</div><div><br></div><div>I want to insert some functions into the llvm bitcode ir files.</div><div><br></div><div>So I use IRBuilder and CreateCall().</div><div><br></div><div>But it how error : inlinable function call in a function with debug info must have a !dbg location.</div><div><br></div><div>I don't know what DebugLoc should I give the new CallInst  to setDebugLoc.</div><div><br></div><div>I Create this CallInst , so this CallInst doesn't hava so-called "DebugLoc" mapping to the source code , right ?</div><div><br></div><div>And also I want the compiler can do some inline optimization to my program.</div><div><br></div><div>So I have to give this CallInst a DebugLoc....</div><div><br></div><div>What would happen if the DebugLoc of an Instruction is wrong ?</div><div><br></div><div>would there be any error?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div>