]> granicus.if.org Git - clang/commit
[OpenMP] Fix translation of target args
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 27 Sep 2017 18:12:36 +0000 (18:12 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 27 Sep 2017 18:12:36 +0000 (18:12 +0000)
commita591cfdc7882ec9681daf054b93989cda4559d81
treecc964d7179705b8686d20af064f38471d21b4c16
parent52ab14f4235ff18d20b03736dda217b89ef2bb10
[OpenMP] Fix translation of target args

ToolChain::TranslateArgs() returns nullptr if no changes are performed.
This would currently mean that OpenMPArgs are lost. Patch fixes this
by falling back to simply using OpenMPArgs in that case.

Differential Revision: https://reviews.llvm.org/D38259

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314330 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Compilation.cpp