We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf85ec5 commit a9c6c1dCopy full SHA for a9c6c1d
llvm/examples/Kaleidoscope/Chapter8/toy.cpp
@@ -1228,7 +1228,8 @@ int main() {
1228
TheModule->setTargetTriple(Triple(TargetTriple));
1229
1230
std::string Error;
1231
- auto Target = TargetRegistry::lookupTarget(TargetTriple, Error);
+ auto Target =
1232
+ TargetRegistry::lookupTarget(TheModule->getTargetTriple(), Error);
1233
1234
// Print an error and exit if we couldn't find the requested target.
1235
// This generally occurs if we've forgotten to initialise the
0 commit comments