]> granicus.if.org Git - clang/commit
CodeGen: correct Windows ARM C++ assertion
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 Feb 2016 04:12:40 +0000 (04:12 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 Feb 2016 04:12:40 +0000 (04:12 +0000)
commitb18f2e9d6d1bd99dc1aee14588cfd8af994ccbef
treed519f316bac10df0214dd0aee9901444fc88b0e3
parent5ba1f13b04e48bdc5a2eb4a505df923aa1ed3179
CodeGen: correct Windows ARM C++ assertion

Because the Decl is explicitly passed as nullptr further up the call chain, it
is possible to invoke isa on a nullptr, which will assert.  Guard against the
nullptr.

Take the opportunity to reuse the helper method rather than re-implementing this
logic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp [new file with mode: 0644]