diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:13:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:13:04 +0000 |
commit | 068f2ab10fe8e37afc4591eb1b06de1f91a39c1e (patch) | |
tree | 749530144a261dafe7c06f62eb227bbe5e5224af /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | b0e36085c437c71f126680b6fa38d6fc112f6471 (diff) | |
download | llvm-068f2ab10fe8e37afc4591eb1b06de1f91a39c1e.zip llvm-068f2ab10fe8e37afc4591eb1b06de1f91a39c1e.tar.gz llvm-068f2ab10fe8e37afc4591eb1b06de1f91a39c1e.tar.bz2 |
adjust for llvm mainline, yay type safety
llvm-svn: 119487
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 51c55a1..6614531 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -121,10 +121,10 @@ namespace { // 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); |