]> granicus.if.org Git - llvm/commit
Fix the issue addressed in r243996: avoid calling std::equals on nullptr
authorHans Wennborg <hans@hanshq.net>
Mon, 17 Aug 2015 20:08:47 +0000 (20:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 17 Aug 2015 20:08:47 +0000 (20:08 +0000)
commit577cc22d61e3599eb48bb4c044f035f67a943879
treefc4e3bf914a089f826f2b9ee7df5348d9e47729a
parentd3e24ba13995f24db1ee01807e4fb7afc5e879af
Fix the issue addressed in r243996: avoid calling std::equals on nullptr
because MSVC's STL implementation can trip a debug assert on that.

There is still a discussion ongoing about r243996, so let's just apply
a minimal fix for 3.7.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@245233 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Type.cpp