projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c80c75
)
Silence warning when no assertions.
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 Apr 2008 21:46:45 +0000
(21:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 Apr 2008 21:46:45 +0000
(21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49284
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineFunction.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineFunction.cpp
b/lib/CodeGen/MachineFunction.cpp
index 9bcf250aea8f4fa52170263bbed79e842e9fdaa7..a9501259d24bbf2b8274c1f333b5ae5bd41a2bef 100644
(file)
--- a/
lib/CodeGen/MachineFunction.cpp
+++ b/
lib/CodeGen/MachineFunction.cpp
@@
-317,7
+317,8
@@
MachineFunction::construct(const Function *Fn, const TargetMachine &Tar)
void MachineFunction::destruct(const Function *Fn) {
bool Deleted = Fn->deleteAnnotation(MF_AID);
- assert(Deleted && "Machine code did not exist for function!");
+ assert(Deleted && "Machine code did not exist for function!");
+ Deleted = Deleted; // silence warning when no assertions.
}
MachineFunction& MachineFunction::get(const Function *F)