projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4244d
)
[AArch64] Fix -Wunused-but-set-variable in GCC -DLLVM_ENABLE_ASSERTIONS=off build
author
Fangrui Song
<i@maskray.me>
Wed, 20 Jan 2021 18:14:10 +0000
(10:14 -0800)
committer
Fangrui Song
<i@maskray.me>
Wed, 20 Jan 2021 18:14:11 +0000
(10:14 -0800)
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
index
0021456
..
9619bb4
100644
(file)
--- a/
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+++ b/
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@
-865,6
+865,7
@@
static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII,
#ifndef NDEBUG
ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
assert(ValidCopy && "Invalid copy.");
+ (void)KnownValid;
#endif
return ValidCopy;
};