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 | 12b8a63e13d7bde9a4c2414dd4342abdc16e27ec (patch) | |
tree | 266bb0b16ab16b6c0949d355d34de518a603c291 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 84d8767c1582d1ee300ecf9899b76d57a34c3597 (diff) | |
download | bcm5719-llvm-12b8a63e13d7bde9a4c2414dd4342abdc16e27ec.tar.gz bcm5719-llvm-12b8a63e13d7bde9a4c2414dd4342abdc16e27ec.zip |
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.
llvm-svn: 91046
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions