Fix const string literal warning
authorAndy Ayers <andya@microsoft.com>
Tue, 9 Feb 2016 16:46:16 +0000 (08:46 -0800)
committerAndy Ayers <andya@microsoft.com>
Tue, 9 Feb 2016 16:46:16 +0000 (08:46 -0800)
This came up during an FI from LLVM, testing LLILC, see microsoft/llvmdotnet/coreclr#140 .

Commit migrated from https://github.com/dotnet/coreclr/commit/49ee4ba1398aa71ad494e94099d75a7c830b6fe9

src/coreclr/src/jit/flowgraph.cpp

index 47e3b5c..e95a8db 100644 (file)
@@ -4631,7 +4631,7 @@ DECODE_OPCODE:
             //Consider making this only for not force inline.
             if (compIsForInlining())
             {
-                char *message;
+                const char* message;
 #ifdef DEBUG
                 message = (char*)compAllocator->nraAlloc(128);
                 sprintf((char*)message, "Unsupported opcode for inlining: %s\n",