clover: Use correct LLVM version in #if for DataLayout construction
authorTom Stellard <thomas.stellard@amd.com>
Tue, 4 Mar 2014 15:22:59 +0000 (10:22 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 4 Mar 2014 21:22:09 +0000 (16:22 -0500)
Spotted by Michel Dänzer.

src/gallium/state_trackers/clover/llvm/invocation.cpp

index cdf32b6e3fbaa4487a5ee2009ca8a3bd1bc5ce52..a9ac83b8999c6bb2cca651ec20936cd548a61e58 100644 (file)
@@ -297,7 +297,7 @@ namespace {
             llvm::Argument &arg = *I;
 #if HAVE_LLVM < 0x0302
             llvm::TargetData TD(kernel_func->getParent());
-#elif HAVE_LLVM < 0x0304
+#elif HAVE_LLVM < 0x0305
             llvm::DataLayout TD(kernel_func->getParent()->getDataLayout());
 #else
             llvm::DataLayout TD(mod);