Skip to content

Commit

Permalink
[cling] Only set result type if result type is known for auto-injection
Browse files Browse the repository at this point in the history
  • Loading branch information
devajithvs committed Jan 26, 2024
1 parent 938626c commit a391f88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions interpreter/llvm-project/clang/lib/Sema/SemaExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15190,8 +15190,10 @@ ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc,

return ExprError();
}
VD->setTypeSourceInfo(C.getTrivialTypeSourceInfo(ResTy));
VD->setType(ResTy);
if (!ResTy.isNull()) {
VD->setTypeSourceInfo(C.getTrivialTypeSourceInfo(ResTy));
VD->setType(ResTy);
}
VD->setInit(DefaultLvalueConversion(RHSExpr).get());
PushOnScopeChains(VD, getCurScope(), /*Add to ctx*/true);

Expand Down
2 changes: 1 addition & 1 deletion interpreter/llvm-project/llvm-project.tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ROOT-llvm16-20240119-01
ROOT-llvm16-20240126-01

0 comments on commit a391f88

Please sign in to comment.