[llvm] bdf4b9a - [NVPTX] Fix typo causing GCC warning (#103045)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 10:46:55 PDT 2024
Author: gonzalobg
Date: 2024-08-14T10:46:52-07:00
New Revision: bdf4b9a00c13044b6e989f58f0e505c7236c4a3a
URL: https://github.com/llvm/llvm-project/commit/bdf4b9a00c13044b6e989f58f0e505c7236c4a3a
DIFF: https://github.com/llvm/llvm-project/commit/bdf4b9a00c13044b6e989f58f0e505c7236c4a3a.diff
LOG: [NVPTX] Fix typo causing GCC warning (#103045)
Solves typo found by @mikaelholmen here:
https://github.com/llvm/llvm-project/pull/98551#discussion_r1714824883
Added:
Modified:
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
index 25c198f0121e59..4f0bc1a2044642 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
@@ -1974,8 +1974,7 @@ bool NVPTXDAGToDAGISel::tryStore(SDNode *N) {
Ops.append({BasePtr, Chain});
}
- SDNode *NVPTXST = NVPTXST =
- CurDAG->getMachineNode(*Opcode, DL, MVT::Other, Ops);
+ SDNode *NVPTXST = CurDAG->getMachineNode(*Opcode, DL, MVT::Other, Ops);
if (!NVPTXST)
return false;
More information about the llvm-commits
mailing list