Skip to content

Commit 933e009

Browse files
Merge branch 'master' of github.com:microsoft/checkedc-clang
2 parents 54d1bfd + d3289fc commit 933e009

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ C specification is available at the
1010

1111
### Source code update
1212

13+
On Feb 19, 2021 we updated the checkedc-clang sources to upstream release_110,
14+
specifically [this](https://github.com/llvm/llvm-project/commit/2e10b7a39b930ef8d9c4362509d8835b221fbc0a) commit.
15+
1316
On Feb 18, 2020 we updated the checkedc-clang sources to upstream release_90,
14-
specifically [this](http://llvm.org/viewvc/llvm-project?view=revision&revision=366428) commit.
17+
specifically [this](https://github.com/llvm/llvm-project/commit/c89a3d78f43d81b9cff7b9248772ddf14d21b749) commit.
1518

1619
### Transition to monorepo
1720

clang/lib/CodeGen/CGCall.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4264,7 +4264,6 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
42644264
CGM, Loc, dyn_cast_or_null<FunctionDecl>(CurCodeDecl), FD, CallArgs);
42654265
}
42664266

4267-
#ifndef NDEBUG
42684267
if (!(CallInfo.isVariadic() && CallInfo.getArgStruct())) {
42694268
// For an inalloca varargs function, we don't expect CallInfo to match the
42704269
// function pointer's type, because the inalloca struct a will have extra
@@ -4310,10 +4309,15 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
43104309

43114310
if (getLangOpts().CheckedC)
43124311
IRFuncTy = cast<llvm::FunctionType>(TypeFromVal);
4313-
else
4312+
else {
4313+
// NOTE: This may cause merge conflicts during checkedc-clang source
4314+
// upgrades. For more details refer
4315+
// https://github.com/microsoft/checkedc-clang/pull/990
4316+
#ifndef NDEBUG
43144317
assert(IRFuncTy == TypeFromVal);
4315-
}
43164318
#endif
4319+
}
4320+
}
43174321

43184322
// 1. Set up the arguments.
43194323

clang/test/Analysis/lit.local.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config.substitutions.append(('%normalize_plist',
1919

2020
# Filtering command for testing SARIF output against reference output.
2121
config.substitutions.append(('%normalize_sarif',
22-
"grep -Ev '^[[:space:]]*(%s|%s|%s)[[:space:]]*$'" %
22+
"grep -Eva '^[[:space:]]*(%s|%s|%s)[[:space:]]*$'" %
2323
('"uri": "file:.*%basename_t"',
2424
'"version": ".* version .*"',
2525
'"version": "2.1.0"')))

clang/test/CheckedC/verification/codegen-checked.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// There should be a __VERIFIER_error at each dynamic check failed block.
33
//
44
//
5-
// RUN: %clang -finject-verifier-calls -emit-llvm -S %s -o - | FileCheck %s
5+
// RUN: %clang_cc1 -finject-verifier-calls -emit-llvm %s -o - | FileCheck %s
66

77
extern void __VERIFIER_error (void);
88
extern void __VERIFIER_assume (int);

clang/test/CheckedC/verification/codegen-unchecked.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// dynamic check failed block.
44
//
55
//
6-
// RUN: %clang -finject-verifier-calls -funchecked-pointers-dynamic-check -emit-llvm -S %s -o - | FileCheck %s
6+
// RUN: %clang_cc1 -finject-verifier-calls -funchecked-pointers-dynamic-check -emit-llvm %s -o - | FileCheck %s
77

88
extern void __VERIFIER_error (void);
99
extern void __VERIFIER_assume (int);

0 commit comments

Comments
 (0)