Skip to content

Commit d38dcf0

Browse files
committed
Hotfix LLVM deprecation warning.
1 parent 9b0589b commit d38dcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeGen_PTX_Dev.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ vector<char> CodeGen_PTX_Dev::compile_to_src() {
609609
// Allocate target machine
610610

611611
std::string err_str;
612-
const llvm::Target *llvm_target = TargetRegistry::lookupTarget(triple.str(), err_str);
612+
const llvm::Target *llvm_target = TargetRegistry::lookupTarget(triple, err_str);
613613
internal_assert(llvm_target) << err_str << "\n";
614614

615615
TargetOptions options;

0 commit comments

Comments
 (0)