From 7b1fdee2c5711b50df3cb4208a7c73be659752c7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 28 Aug 2017 20:15:30 -0400
Subject: [PATCH] P4 to Git Change 1452486 by
skudchad@skudchad_test_win_opencl2 on 2017/08/28 20:01:08
SWDEV-116136 - Support -Og for Clang
- Fix assert for -cl-disable-opt
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/options.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#44 edit
[ROCm/clr commit: c6a3aed5f80b8e62590c6818d8004d4eb1563d99]
---
projects/clr/rocclr/compiler/lib/utils/options.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/compiler/lib/utils/options.cpp b/projects/clr/rocclr/compiler/lib/utils/options.cpp
index 217ab931e0..14e2eb1d72 100644
--- a/projects/clr/rocclr/compiler/lib/utils/options.cpp
+++ b/projects/clr/rocclr/compiler/lib/utils/options.cpp
@@ -157,7 +157,7 @@ setAliasOptionVariable (int OptDescTableIx, Options& Opts,
od = &OptDescTable[OID_OptLevel];
assert ((IValue > 0) &&
"Internal Error: -cl-opt-disable is present, but with wrong value");
- if (!setOptionVariable (od, oVars, (int64_t)0, NULL)) {
+ if (!setOptionVariable (od, oVars, (int64_t)amd::option::OPT_O0, NULL)) {
return false;
}
return true;