diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-04-11 10:57:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-11 10:57:08 -0700 |
commit | abe3b90b3fa49829a165f2174191c33542597052 (patch) | |
tree | 3688a3e423aa0df5e28ac3b7609e6286e1c0c4b2 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | cb974dcd7798317f065fe0668e16d0e1712e5ca0 (diff) | |
download | llvm-abe3b90b3fa49829a165f2174191c33542597052.zip llvm-abe3b90b3fa49829a165f2174191c33542597052.tar.gz llvm-abe3b90b3fa49829a165f2174191c33542597052.tar.bz2 |
[CIR] Fix warnings, again! (#135284)
The calleeDecl var will be used in the near future, so I left it. At
least for clang, the [[maybe_unused]] attribute takes care of the
warnings related to that variable. The other warning was a simple lack
of return after errorNYI.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 4b5acb3..fd11523 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -262,6 +262,7 @@ CIRGenModule::getOrCreateCIRGlobal(StringRef mangledName, mlir::Type ty, } errorNYI(d->getSourceRange(), "reference of undeclared global"); + return {}; } cir::GlobalOp |