We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd91ac2 commit 8c83d03Copy full SHA for 8c83d03
clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -1149,7 +1149,7 @@ std::optional<LValue> CGHLSLRuntime::emitBufferArraySubscriptExpr(
1149
// be past the end of the in-memory object.
1150
SmallVector<llvm::Value *, 2> Indices;
1151
Indices.push_back(Idx);
1152
- Indices.push_back(llvm::ConstantInt::get(Idx->getType(), 0));
+ Indices.push_back(llvm::ConstantInt::get(CGF.Int32Ty, 0));
1153
1154
llvm::Value *GEP = CGF.Builder.CreateGEP(LayoutTy, Addr.emitRawPointer(CGF),
1155
Indices, "cbufferidx");
0 commit comments