Skip to content

Commit 20ebf54

Browse files
committed
address comments
1 parent 2e148cb commit 20ebf54

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

clang/lib/Driver/OffloadBundler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ class ObjectFileHandler final : public FileHandler {
687687
if (Error Err = Symbol.printName(NameOS))
688688
return std::move(Err);
689689

690-
// If we are dealing with a bitcode file do not add special globals
691-
// llvm.used and llvm.compiler.used to the list of defined symbols.
690+
// If we are dealing with a bitcode file do not add special globals to
691+
// the list of defined symbols.
692692
if (SF->isIR() &&
693693
(Name == "llvm.used" || Name == "llvm.compiler.used" ||
694694
Name == "__AsanKernelMetadata"))

llvm/include/llvm/SYCLLowerIR/AsanKernelMetadata.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// This pass fixes attributes and metadata of global variable
8+
// This pass fixes attributes and metadata of the global variable
99
// "__AsanKernelMetadata"
1010
//===----------------------------------------------------------------------===//
1111

12+
#pragma once
13+
1214
#include "llvm/IR/PassManager.h"
1315

1416
namespace llvm {

0 commit comments

Comments
 (0)