]> granicus.if.org Git - llvm/commit
[AMDGPU] isSDNodeAlwaysUniform - silence static analyzer dyn_cast<LoadSDNode> null...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 21:01:13 +0000 (21:01 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 21:01:13 +0000 (21:01 +0000)
commitae38ef995f29a4bc54d7511892007890dbd0741c
tree465eda47e2f4c44df6eadb7c44021c9ae1a59052
parent8d0c7d286d6d2da94231868e0f77dfbbd4927678
[AMDGPU] isSDNodeAlwaysUniform - silence static analyzer dyn_cast<LoadSDNode> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<LoadSDNode> directly and if not assert will fire for us.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp