summaryrefslogtreecommitdiff
path: root/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-12-15 22:22:58 +0000
committerMatthias Braun <matze@braunis.de>2017-12-15 22:22:58 +0000
commitd318139827695f2011ef24693a101829829558b7 (patch)
treee419a9891762635d61c1db320b72411e7b330ce8 /lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
parentdfcb4f534480ecf3bc64c11781fa2d3123737e91 (diff)
MachineFunction: Return reference from getFunction(); NFC
The Function can never be nullptr so we can return a reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp')
-rw-r--r--lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp b/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
index 714260d372b..57e2acc0d7e 100644
--- a/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+++ b/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
@@ -1003,7 +1003,7 @@ static bool canLowerToLDG(MemSDNode *N, const NVPTXSubtarget &Subtarget,
return true;
// Load wasn't explicitly invariant. Attempt to infer invariance.
- if (!isKernelFunction(*F->getFunction()))
+ if (!isKernelFunction(F->getFunction()))
return false;
// We use GetUnderlyingObjects() here instead of