Skip to content

Commit

Permalink
8289427: compiler/compilercontrol/jcmd/ClearDirectivesFileStackTest.j…
Browse files Browse the repository at this point in the history
…ava failed with null setting

Reviewed-by: kvn, thartmann
  • Loading branch information
tkiriyama authored and TobiHartmann committed Jul 5, 2022
1 parent 688712f commit 1b997db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -213,7 +213,7 @@ private void handleCommand(DirectiveWriter dirFile, CompileCommand cmd) {
dirFile.option(DirectiveWriter.Option.PRINT_ASSEMBLY, true);
break;
case INTRINSIC:
dirFile.option(DirectiveWriter.Option.INTRINSIC, "\"" + cmd.argument + "\"");
dirFile.option(DirectiveWriter.Option.INTRINSIC, "\"" + (cmd.argument != null ? cmd.argument : "+_fabs") + "\"");
break;
case NONEXISTENT:
dirFile.write(JSONFile.Element.PAIR, command.name);
Expand Down

1 comment on commit 1b997db

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.