summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2014-06-20 19:13:30 -0500
committerAaron Watry <awatry@gmail.com>2014-06-20 19:49:18 -0500
commit564821c917f4a9d5a0de2ee77b90b0cd85e3d3a6 (patch)
tree5ce16ae96c6bdaafa83efab889f8355e50cd80cc /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parent86bd2196b4ccec50443e99e6c8bf1659e1df9f37 (diff)
gallivm: Fix build after LLVM commit 211259
Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index df268831969..413a0c2cd72 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -51,7 +51,9 @@
#include <llvm/MC/MCInstPrinter.h>
#include <llvm/MC/MCRegisterInfo.h>
-#if HAVE_LLVM >= 0x0303
+#if HAVE_LLVM >= 0x0305
+#define OwningPtr std::unique_ptr
+#elif HAVE_LLVM >= 0x0303
#include <llvm/ADT/OwningPtr.h>
#endif