[polly] r281333 - GPGPU: Use const_cast to avoid compiler warning [NFC]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 06:22:28 PDT 2016
Author: grosser
Date: Tue Sep 13 08:22:27 2016
New Revision: 281333
URL: http://llvm.org/viewvc/llvm-project?rev=281333&view=rev
Log:
GPGPU: Use const_cast to avoid compiler warning [NFC]
Modified:
polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
Modified: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp?rev=281333&r1=281332&r2=281333&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp Tue Sep 13 08:22:27 2016
@@ -998,7 +998,7 @@ GPUNodeBuilder::createLaunchParameters(p
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),
More information about the llvm-commits
mailing list