Skip to content

Commit 975c27c

Browse files
committed
Revert "[NVPTX] Fix a warning"
This reverts commit e7a83fc. Revert a warning fixup that blocks the revert I really want to make. Signed-off-by: Krzysztof Drewniak <[email protected]>
1 parent a035b35 commit 975c27c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/NVPTX/NVVMReflect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ bool NVVMReflect::runOnFunction(Function &F) {
222222

223223
NVVMReflectPass::NVVMReflectPass() {
224224
// Get the CPU string from the command line if not provided.
225-
std::string MCPU = codegen::getMCPU();
226-
StringRef SM = MCPU;
225+
StringRef SM = codegen::getMCPU();
227226
if (!SM.consume_front("sm_") || SM.consumeInteger(10, SmVersion))
228227
SmVersion = 0;
229228
}

0 commit comments

Comments
 (0)