From abf7c423bbabc3d8eef2aca86391b3e4b34b2a77 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 18 Apr 2012 06:14:55 -0700 Subject: [PATCH] Fix build with LLVM 3.0 --- cbackend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cbackend.cpp b/cbackend.cpp index e9dd7fe0..0c582ce0 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -3587,6 +3587,9 @@ bool CWriter::visitBuiltinCall(CallInst &I, Intrinsic::ID ID, // If this is an intrinsic that directly corresponds to a GCC // builtin, we emit it here. const char *BuiltinName = ""; +#ifdef LLVM_3_0 + Function *F = I.getCalledFunction(); +#endif // LLVM_3_0 #define GET_GCC_BUILTIN_NAME #include "llvm/Intrinsics.gen" #undef GET_GCC_BUILTIN_NAME