Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/examples/Kaleidoscope/Chapter8/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,8 @@ int main() {
TheModule->setTargetTriple(Triple(TargetTriple));

std::string Error;
auto Target = TargetRegistry::lookupTarget(TargetTriple, Error);
auto Target =
TargetRegistry::lookupTarget(TheModule->getTargetTriple(), Error);

// Print an error and exit if we couldn't find the requested target.
// This generally occurs if we've forgotten to initialise the
Expand Down
Loading