summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-09-13 13:22:27 +0000
committerTobias Grosser <tobias@grosser.es>2016-09-13 13:22:27 +0000
commit0a893f7df488f6449099429cd35f8db4f44a86cd (patch)
tree70aa5227fd2c4733d127f9eb3c00dade15dfbe5b /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parent3647a96a44c456e9302eee5812efb73c882565d2 (diff)
downloadbcm5719-llvm-0a893f7df488f6449099429cd35f8db4f44a86cd.tar.gz
bcm5719-llvm-0a893f7df488f6449099429cd35f8db4f44a86cd.zip
GPGPU: Use const_cast to avoid compiler warning [NFC]
llvm-svn: 281333
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index 0d6f1b60b0c..076a94add20 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -998,7 +998,7 @@ GPUNodeBuilder::createLaunchParameters(ppcg_kernel *Kernel, Function *F,
isl_id *Id = isl_space_get_tuple_id(Prog->array[i].space, isl_dim_set);
const ScopArrayInfo *SAI = ScopArrayInfo::getFromId(Id);
- Value *DevArray = DeviceAllocations[(ScopArrayInfo *)SAI];
+ Value *DevArray = DeviceAllocations[const_cast<ScopArrayInfo *>(SAI)];
DevArray = createCallGetDevicePtr(DevArray);
Instruction *Param = new AllocaInst(
Builder.getInt8PtrTy(), Launch + "_param_" + std::to_string(Index),
OpenPOWER on IntegriCloud