[llvm] d9af34f - [Kaleidoscope] Adjust after Module Triple change
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 02:52:59 PST 2025
Author: Nikita Popov
Date: 2025-03-06T11:52:51+01:00
New Revision: d9af34f499822df41a9dbe85cf8179ff167694dc
URL: https://github.com/llvm/llvm-project/commit/d9af34f499822df41a9dbe85cf8179ff167694dc
DIFF: https://github.com/llvm/llvm-project/commit/d9af34f499822df41a9dbe85cf8179ff167694dc.diff
LOG: [Kaleidoscope] Adjust after Module Triple change
Adjust for #129868.
Added:
Modified:
llvm/examples/Kaleidoscope/Chapter8/toy.cpp
Removed:
################################################################################
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
index ae2f9c7059e5f..e2e54306dd2fd 100644
--- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
@@ -1225,7 +1225,7 @@ int main() {
InitializeAllAsmPrinters();
auto TargetTriple = sys::getDefaultTargetTriple();
- TheModule->setTargetTriple(TargetTriple);
+ TheModule->setTargetTriple(Triple(TargetTriple));
std::string Error;
auto Target = TargetRegistry::lookupTarget(TargetTriple, Error);
More information about the llvm-commits
mailing list