================
@@ -300,16 +640,17 @@ llvm::Expected<Expr *>
Interpreter::ExtractValueFromExpr(Expr *E) {
using namespace clang;
// Temporary rvalue struct that need special care.
-REPL_EXTERNAL_VISIBILITY void *
+REPL_EXTERNAL_VISIBILITY extern "C" void *
----------------
AaronBallman wrote:
That didn't seem to work, but then why does this work already?
https://github.com/llvm/llvm-project/blob/b7c14b6ded300b9190fe0b65881d04c54b2a9fbd/clang/lib/Interpreter/InterpreterValuePrinter.cpp#L311
But this one uses a different style:
https://github.com/llvm/llvm-project/blob/b7c14b6ded300b9190fe0b65881d04c54b2a9fbd/clang/lib/Interpreter/InterpreterValuePrinter.cpp#L303
https://github.com/llvm/llvm-project/pull/148701
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits