Skip to content

Commit d2b828d

Browse files
committed
forgot a getOperand call
1 parent 8429c81 commit d2b828d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/NVPTX/NVVMReflect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool NVVMReflect::handleReflectFunction(Module &M,
165165
if (!GlobalStr)
166166
report_fatal_error("__nvvm_reflect argument must be a constant string");
167167

168-
const auto *const ConstantStr = dyn_cast<ConstantDataSequential>(GlobalStr);
168+
const auto *const ConstantStr = dyn_cast<ConstantDataSequential>(GlobalStr->getOperand(0));
169169
if (!ConstantStr)
170170
report_fatal_error("__nvvm_reflect argument must be a string constant");
171171
if (!ConstantStr->isCString())

0 commit comments

Comments
 (0)