summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception_win.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-09-12 02:20:36 +0000
committerVitaly Buka <vitalybuka@google.com>2019-09-12 02:20:36 +0000
commitd2af368aee56abf77f4a6ca3fd57ebdb697c48f2 (patch)
tree36057b4d4b1e3fd38d33027438c81834e88e100d /compiler-rt/lib/interception/interception_win.cpp
parent6e8c21857ecb49b282c2ee4df434f27469647e5e (diff)
downloadbcm5719-llvm-d2af368aee56abf77f4a6ca3fd57ebdb697c48f2.tar.gz
bcm5719-llvm-d2af368aee56abf77f4a6ca3fd57ebdb697c48f2.zip
[compiler-rt] Remove some cpplint filters
llvm-svn: 371704
Diffstat (limited to 'compiler-rt/lib/interception/interception_win.cpp')
-rw-r--r--compiler-rt/lib/interception/interception_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/interception/interception_win.cpp b/compiler-rt/lib/interception/interception_win.cpp
index b94e214fdff..1a1c327e612 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -883,8 +883,8 @@ uptr InternalGetProcAddress(void *module, const char *func_name) {
// Check that the module header is full and present.
RVAPtr<IMAGE_DOS_HEADER> dos_stub(module, 0);
RVAPtr<IMAGE_NT_HEADERS> headers(module, dos_stub->e_lfanew);
- if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ"
- headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0"
+ if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ"
+ headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0"
headers->FileHeader.SizeOfOptionalHeader <
sizeof(IMAGE_OPTIONAL_HEADER)) {
return 0;
@@ -963,8 +963,8 @@ bool OverrideImportedFunction(const char *module_to_patch,
// Check that the module header is full and present.
RVAPtr<IMAGE_DOS_HEADER> dos_stub(module, 0);
RVAPtr<IMAGE_NT_HEADERS> headers(module, dos_stub->e_lfanew);
- if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ"
- headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0"
+ if (!module || dos_stub->e_magic != IMAGE_DOS_SIGNATURE || // "MZ"
+ headers->Signature != IMAGE_NT_SIGNATURE || // "PE\0\0"
headers->FileHeader.SizeOfOptionalHeader <
sizeof(IMAGE_OPTIONAL_HEADER)) {
return false;
OpenPOWER on IntegriCloud