[cfe-commits] r119487 - /cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 17 00:13:04 PST 2010
Author: lattner
Date: Wed Nov 17 02:13:04 2010
New Revision: 119487
URL: http://llvm.org/viewvc/llvm-project?rev=119487&view=rev
Log:
adjust for llvm mainline, yay type safety
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=119487&r1=119486&r2=119487&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Wed Nov 17 02:13:04 2010
@@ -121,10 +121,10 @@
// Install an inline asm handler so that diagnostics get printed through
// our diagnostics hooks.
LLVMContext &Ctx = TheModule->getContext();
- void *OldHandler = Ctx.getInlineAsmDiagnosticHandler();
+ LLVMContext::InlineAsmDiagHandlerTy OldHandler =
+ Ctx.getInlineAsmDiagnosticHandler();
void *OldContext = Ctx.getInlineAsmDiagnosticContext();
- Ctx.setInlineAsmDiagnosticHandler((void*)(intptr_t)InlineAsmDiagHandler,
- this);
+ Ctx.setInlineAsmDiagnosticHandler(InlineAsmDiagHandler, this);
EmitBackendOutput(Diags, CodeGenOpts, TargetOpts,
TheModule.get(), Action, AsmOutStream);
More information about the cfe-commits
mailing list