summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-05-22 19:57:45 -0400
committerMatt Arsenault <arsenm2@gmail.com>2020-05-23 13:24:42 -0400
commit286ca0f7fd6bf26923f3df464e6a74d032f242ea (patch)
tree91b12355c6a1b655669c5ac9605cd6d9f7e2801e
parente32f04cdc95224589f30148599c362ba37bae7b6 (diff)
downloadllvm-286ca0f7fd6bf26923f3df464e6a74d032f242ea.tar.gz
Silence warning from unit test
This was printing about r600 not being a valid subtarget for an amdgcn triple. This is an awkward place because r600 and amdgcn unfortunately occupy the same target. Silence the warning by specifying an explicit subtarget.
-rw-r--r--llvm/unittests/MI/LiveIntervalTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index f0be9709332b..6faa8abd4cd8 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -45,7 +45,7 @@ std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
TargetOptions Options;
return std::unique_ptr<LLVMTargetMachine>(static_cast<LLVMTargetMachine*>(
- T->createTargetMachine("AMDGPU", "", "", Options, None, None,
+ T->createTargetMachine("AMDGPU", "gfx900", "", Options, None, None,
CodeGenOpt::Aggressive)));
}