diff options
Diffstat (limited to 'llvm/examples')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index 739b895..1575211 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp @@ -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 |