aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-06 21:46:45 +0000
committerChris Lattner <sabre@nondot.org>2008-04-06 21:46:45 +0000
commit845e05c8223fcb8e918df5794a50704e9699d7c0 (patch)
tree9c9c811081b7fc6da6f18ff03584d4833f1abf0e /lib/CodeGen/MachineFunction.cpp
parent5beea02daf78957dae62a02773a48dc39b3ac4f3 (diff)
downloadexternal_llvm-845e05c8223fcb8e918df5794a50704e9699d7c0.tar.gz
external_llvm-845e05c8223fcb8e918df5794a50704e9699d7c0.tar.bz2
external_llvm-845e05c8223fcb8e918df5794a50704e9699d7c0.zip
Silence warning when no assertions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 9bcf250aea..a9501259d2 100644
--- 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)