projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd78aa1
)
Print an error, in DEBUG, if we fail to open the JitFuncInfoLogFile
author
Bruce Forstall
<brucefo@microsoft.com>
Wed, 31 Aug 2016 16:38:54 +0000
(09:38 -0700)
committer
Bruce Forstall
<brucefo@microsoft.com>
Wed, 31 Aug 2016 16:57:43 +0000
(09:57 -0700)
src/jit/compiler.cpp
patch
|
blob
|
history
diff --git
a/src/jit/compiler.cpp
b/src/jit/compiler.cpp
index
c8a362c
..
8851e8d
100644
(file)
--- a/
src/jit/compiler.cpp
+++ b/
src/jit/compiler.cpp
@@
-4774,6
+4774,12
@@
int Compiler::compCompile(CORINFO_METHOD_HANDLE methodHnd,
{
assert(compJitFuncInfoFile == nullptr);
compJitFuncInfoFile = _wfopen(compJitFuncInfoFilename, W("a"));
+ if (compJitFuncInfoFile == nullptr)
+ {
+#if defined(DEBUG) && !defined(FEATURE_PAL) // no 'perror' in the PAL
+ perror("Failed to open JitFuncInfoLogFile");
+#endif // defined(DEBUG) && !defined(FEATURE_PAL)
+ }
}
}
#endif // FUNC_INFO_LOGGING