projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3647a96
)
GPGPU: Use const_cast to avoid compiler warning [NFC]
author
Tobias Grosser
<tobias@grosser.es>
Tue, 13 Sep 2016 13:22:27 +0000
(13:22 +0000)
committer
Tobias Grosser
<tobias@grosser.es>
Tue, 13 Sep 2016 13:22:27 +0000
(13:22 +0000)
llvm-svn: 281333
polly/lib/CodeGen/PPCGCodeGeneration.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index
0d6f1b6
..
076a94a
100644
(file)
--- 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),