diff --git a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp index 076e5a0ce7b..52a8f71ca34 100644 --- a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp +++ b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp @@ -76,7 +76,7 @@ class FilenameCache { public: const char *getFilename(MDNode *Scope) { std::string &Filename = Filenames[Scope]; - if (Filename == NULL) { + if (Filename.empty()) { DIScope S(Scope); Filename = S.getFilename(); }