summary refs log tree commit diff stats
path: root/compiler/cgendata.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cgendata.nim')
-rw-r--r--compiler/cgendata.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgendata.nim b/compiler/cgendata.nim
index ce74963e2..a20931be4 100644
--- a/compiler/cgendata.nim
+++ b/compiler/cgendata.nim
@@ -189,8 +189,8 @@ proc newProc*(prc: PSym, module: BModule): BProc =
   new(result)
   result.prc = prc
   result.module = module
-  if prc != nil: result.options = prc.options
-  else: result.options = module.config.options
+  result.options = if prc != nil: prc.options
+                   else: module.config.options
   newSeq(result.blocks, 1)
   result.nestedTryStmts = @[]
   result.finallySafePoints = @[]