mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Fix StringRef conversion for LLVM 11 (777180a32b61070a10dd330b4f038bf24e916af1) (#3305)
This commit is contained in:
parent
97e0d978ee
commit
0a007a55f8
13 changed files with 31 additions and 28 deletions
|
@ -196,7 +196,7 @@ DValue *DtoInlineIRExpr(Loc &loc, FuncDeclaration *fdecl,
|
|||
std::unique_ptr<llvm::Module> m =
|
||||
llvm::parseAssemblyString(stream.str().c_str(), err, gIR->context());
|
||||
|
||||
std::string errstr = err.getMessage();
|
||||
std::string errstr(err.getMessage());
|
||||
if (!errstr.empty()) {
|
||||
error(tinst->loc,
|
||||
"can't parse inline LLVM IR:\n`%s`\n%s\n%s\nThe input string "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue