diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-12-10 10:01:47 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-12-10 10:01:47 +0000 |
commit | f05e45eb373a47054cd569e9bf727f71109be382 (patch) | |
tree | 96347feb03aecc5e31331772255b7f75d417081b /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 3472ae1e7b0f38c4ac0802ffc2900f71a5470c3b (diff) |
Comparing std::string with NULL is a bad idea, so just check whether its empty.
This code was crashing always with oprofile enabled, since it tried to create a StringRef
out of NULL, which run strlen on NULL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
0 files changed, 0 insertions, 0 deletions